Advertisement
Guest User

Untitled

a guest
Jul 1st, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. const UserSchema = new mongoose.Schema({
  2. email: {
  3. type: String,
  4. lowercase: true,
  5. },
  6. firstName: String,
  7. lastName: String,
  8. phone: String,
  9. city: String,
  10. state: String,
  11. country: String,
  12. });
  13.  
  14. {
  15. email: Joi.string().email().required(),
  16. firstName: Joi.string().min(2).max(50).required(),
  17. lastName: Joi.string().min(2).max(50).required(),
  18. phone: Joi.string().min(2).max(50).required(),
  19. city: Joi.string().min(2).max(50).required(),
  20. state: Joi.string().min(2).max(50).required(),
  21. country: Joi.string().min(2).max(50).required(),
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement