mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
17 lines
775 B
JavaScript
17 lines
775 B
JavaScript
// models/notifications/cron_notification_setting.mdl.js
|
|
const { DataTypes } = require("sequelize");
|
|
const sequelize = require("../../config/db.config");
|
|
|
|
const CronNotificationSetting = sequelize.define("CronNotificationSetting", {
|
|
job_name: { type: DataTypes.STRING(64), primaryKey: true, label: "Job" },
|
|
enabled: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: true, label: "Enabled" },
|
|
schedule: { type: DataTypes.STRING(20), allowNull: false, label: "Schedule" },
|
|
target_status: { type: DataTypes.STRING(20), allowNull: true, label: "Target Status" },
|
|
updatedBy: { type: DataTypes.BIGINT, allowNull: true, label: "Modified By" },
|
|
}, {
|
|
tableName: "cron_notification_settings",
|
|
timestamps: true,
|
|
});
|
|
|
|
module.exports = CronNotificationSetting;
|