users valoration started

This commit is contained in:
idoctnef
2016-09-16 11:12:59 +02:00
parent a7af78a6cb
commit 13578f3e01
2 changed files with 27 additions and 15 deletions

View File

@@ -9,6 +9,11 @@ var userSchema = new Schema({
avatar: { type: String },
mail: { type: String },
phone: { type: String },
telegram: { type: String }
telegram: { type: String },
valorations: [{
username: { type: String },
value: { type: Number },
comment: { type: String }
}]
})
module.exports = mongoose.model('userModel', userSchema);