notification system almost implemented on backend

This commit is contained in:
arnaucode
2016-10-18 13:19:04 +02:00
parent 840d7de000
commit 241f92770c
4 changed files with 71 additions and 1 deletions

View File

@@ -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 }
}]
})