Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = mongoose.model( "User", {
- username : {
- type : String,
- default: "",
- unique: true
- },
- password : {
- type : String,
- default: ""
- },
- firstName: {
- type : String,
- default: ""
- },
- lastName : {
- type : String,
- default: ""
- },
- email : {
- type : String,
- default: "",
- validate: isValidEmail,
- unique: true
- }
- } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement