mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
user likes system implemented
This commit is contained in:
@@ -22,6 +22,10 @@ var userSchema = new Schema({
|
||||
value: { type: Number },
|
||||
comment: { type: String }
|
||||
}],
|
||||
likes: [{
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
ref: 'userModel'
|
||||
}],
|
||||
favs: [{
|
||||
user: {
|
||||
type: mongoose.Schema.Types.ObjectId,
|
||||
|
||||
Reference in New Issue
Block a user