12 lines
189 B
JavaScript
12 lines
189 B
JavaScript
var mongoose = require('mongoose')
|
|
|
|
var User = mongoose.model('User', {
|
|
email: {
|
|
type: String,
|
|
required: true,
|
|
minlength: 1,
|
|
trim: true,
|
|
},
|
|
});
|
|
module.exports = {User};
|