arnaucube
arnaucube/openworktimePublic Self-hosted repository
openworktime/models/userModel.js
models/userModel.jsRaw
 1var mongoose = require('mongoose'),
 2    Schema   = mongoose.Schema;
 3
 4
 5var userSchema = new Schema({
 6    username: { type: String },
 7    password: { type: String },
 8    description:   { type: String },
 9    mail:   { type: String },
10    avatar:   { type: String },
11    github: { type: String },
12    web: { type: String },
13    projects: { type: String },
14    connected: { type: Boolean },
15    working: { type: Boolean }
16})
17module.exports = mongoose.model('userModel', userSchema);