user fav system implemented

This commit is contained in:
idoctnef
2016-10-06 22:40:54 +02:00
parent 408812b265
commit 29091426a4
4 changed files with 59 additions and 5 deletions

View File

@@ -16,6 +16,11 @@ var userSchema = new Schema({
username: { type: String },
value: { type: Number },
comment: { type: String }
}],
favs: [{
username: { type: String },
userId: { type: String },
avatar: { type: String }
}]
})