Added models
This commit is contained in:
parent
aa0619b124
commit
b9469d89b5
3 changed files with 70 additions and 0 deletions
14
models/Notifications.js
Normal file
14
models/Notifications.js
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue