Added models

This commit is contained in:
Damien Broqua 2019-12-24 11:30:19 +01:00
parent aa0619b124
commit b9469d89b5
3 changed files with 70 additions and 0 deletions

14
models/Notifications.js Normal file
View file

@ -0,0 +1,14 @@
module.exports = mongoose => {
const schema = new mongoose.Schema({
user: String,
property: {
type: String,
enum: ['artist', 'title']
},
value: String
})
const Notifications = mongoose.model('Notifications', schema)
return Notifications
}