mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
notification system almost implemented on backend
This commit is contained in:
@@ -22,6 +22,13 @@ var userSchema = new Schema({
|
||||
username: { type: String },
|
||||
userId: { type: String },
|
||||
avatar: { type: String }
|
||||
}],
|
||||
notifications: [{
|
||||
type: { type: String },//fav, comment, join
|
||||
otherusername: { type: String },
|
||||
description: { type: String },
|
||||
date: { type: Date },
|
||||
link: { type: String }
|
||||
}]
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user