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.
88 lines
2.0 KiB
88 lines
2.0 KiB
2 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const AppAlarm = sequelize.define("appAlarm", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "app_alarm_id_uindex"
|
||
|
},
|
||
|
serialNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "自定义编号",
|
||
|
primaryKey: false,
|
||
|
field: "serial_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
pepProjectId: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "对应的项目id",
|
||
|
primaryKey: false,
|
||
|
field: "pep_project_id",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
appDomain: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: "应用域名",
|
||
|
primaryKey: false,
|
||
|
field: "app_domain",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
alarmContent: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "告警信息",
|
||
|
primaryKey: false,
|
||
|
field: "alarm_content",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
createTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "create_time",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
updateTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: false,
|
||
|
field: "update_time",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
confirm: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "确认信息",
|
||
|
primaryKey: false,
|
||
|
field: "confirm",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "app_alarm",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.AppAlarm = AppAlarm;
|
||
|
return AppAlarm;
|
||
|
};
|