LMS/E-Learning-Backend-main/app/models/notification_settings.js
2025-09-01 19:37:35 +05:30

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;
}