udemy-node-todo-app/server/models/user.js

12 lines
189 B
JavaScript
Raw Permalink Normal View History

2017-11-30 03:52:44 +00:00
var mongoose = require('mongoose')
var User = mongoose.model('User', {
email: {
type: String,
required: true,
minlength: 1,
trim: true,
},
});
2017-12-01 03:18:17 +00:00
module.exports = {User};