14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
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
|
|
}
|