You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.3 KiB
97 lines
2.3 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const AlarmPushConfig = sequelize.define("alarmPushConfig", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "alarm_push_config_id_uindex"
|
||
|
},
|
||
|
name: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "name",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
pepProjectId: {
|
||
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "pep_project_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
alarmType: {
|
||
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "监听的告警类型",
|
||
|
primaryKey: false,
|
||
|
field: "alarm_type",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
receiverPepUserId: {
|
||
|
type: DataTypes.ARRAY(DataTypes.INTEGER),
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "接收人id 项企",
|
||
|
primaryKey: false,
|
||
|
field: "receiver_pep_user_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
timeType: {
|
||
|
type: DataTypes.ARRAY(DataTypes.STRING),
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "通知时效",
|
||
|
primaryKey: false,
|
||
|
field: "time_type",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
createTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "create_time",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
createUserId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "create_user_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
disable: {
|
||
|
type: DataTypes.BOOLEAN,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "disable",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "alarm_push_config",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.AlarmPushConfig = AlarmPushConfig;
|
||
|
return AlarmPushConfig;
|
||
|
};
|