Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var UserSchema = new Schema({
- email: {
- type: String, required: true,
- trim: true, unique: true,
- match: /^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/
- },
- firstName: {type: String},
- lastName: {type: String}
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement