arnaucube
arnaucube/thoughtsPublic Self-hosted repository
thoughts/models/userModel.js
models/userModel.jsRaw
 1var mongoose = require('mongoose'),
 2    Schema   = mongoose.Schema;
 3
 4/*var tvshowSchema = new Schema({
 5  title:    { type: String },
 6  year:     { type: Number },
 7  country:  { type: String },
 8  poster:   { type: String },
 9  seasons:  { type: Number },
10  genre:    { type: String, enum:
11  ['Drama', 'Fantasy', 'Sci-Fi', 'Thriller', 'Comedy']
12        },
13  summary:  { type: String }
14});*/
15
16var userSchema = new Schema({
17    username: { type: String },
18    password: { type: String },
19    description:   { type: String },
20    icon:   { type: String },
21    mail:   { type: String },
22    admin: { type: Boolean }
23})
24module.exports = mongoose.model('userModel', userSchema);