Added !notifications

This commit is contained in:
Damien Broqua 2020-01-02 13:58:41 +01:00
parent e260ebc135
commit c093e4bf64
4 changed files with 128 additions and 13 deletions

11
models/Preferences.js Normal file
View file

@ -0,0 +1,11 @@
module.exports = mongoose => {
const schema = new mongoose.Schema({
user: String,
notification: Boolean,
radio: String
})
const Preferences = mongoose.model('Preferences', schema)
return Preferences
}