arnaucube
arnaucube/commonroutesServerPublic Self-hosted repository
commonroutesServer/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    avatar:   { type: String },
10    mail:   { type: String },
11    phone: { type: String },
12    telegram: { type: String },
13    valorations: [{
14      username: { type: String },
15      value: { type: Number },
16      comment: { type: String }
17    }]
18})
19module.exports = mongoose.model('userModel', userSchema);