31 lines
758 B
JavaScript
31 lines
758 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const NotificationSetting = sequelize.define('notification_settings', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
user_id: type.INTEGER,
|
|
oberdue: {
|
|
type: type.INTEGER,
|
|
defaultValue: 1
|
|
},
|
|
live_events: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
instructor: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
chat: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
},
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return NotificationSetting;
|
|
} |