irc-radio-bot/models/Notifications.js
2019-12-24 16:30:45 +01:00

15 lines
273 B
JavaScript

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