/* 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,
comment: "自定义编号",
primaryKey: false,
field: "serial_number",
autoIncrement: false
projectAppId: {
comment: "对应的项目id",
field: "project_app_id",
autoIncrement: false,
references: {
key: "id",
model: "app"
}
appDomain: {
comment: "应用域名",
field: "app_domain",
alarmContent: {
comment: "告警信息",
field: "alarm_content",
createTime: {
type: DataTypes.DATE,
field: "create_time",
updateTime: {
field: "update_time",
confirm: {
comment: "确认信息",
field: "confirm",
router: {
comment: "路由",
field: "router",
statusCode: {
comment: "状态码",
field: "status_code",
screenshot: {
field: "screenshot",
confirmTime: {
comment: "确认时间",
field: "confirm_time",
confirmAuto: {
type: DataTypes.BOOLEAN,
comment: "是否自动恢复",
field: "confirm_auto",
type: {
field: "type",
}, {
tableName: "app_alarm",
comment: "",
indexes: []
});
dc.models.AppAlarm = AppAlarm;
return AppAlarm;
};