generator-aristos
Version:
create aristos cms fast with yeoman generator.
35 lines (33 loc) • 492 B
JavaScript
const mongoose = require("mongoose");
/* User Schema */
const UserSchema = new mongoose.Schema({
firstName: {
type: String
},
lastName: {
type: String
},
email: {
type: String,
required: true
},
username: {
type: String
},
password: {
type: String
},
image: {
type: String
},
admin: {
type: Number
},
googleID: {
type: String
},
facebookID: {
type: String
}
});
module.exports = mongoose.model("User", UserSchema);