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