udemy-node-todo-app/server/models/user.js
2017-11-29 22:52:44 -05:00

11 lines
164 B
JavaScript

var mongoose = require('mongoose')
var User = mongoose.model('User', {
email: {
type: String,
required: true,
minlength: 1,
trim: true,
},
});