wenlele
1 year ago
11 changed files with 193 additions and 40 deletions
@ -0,0 +1,62 @@ |
|||
/* eslint-disable*/ |
|||
|
|||
'use strict'; |
|||
|
|||
module.exports = dc => { |
|||
const DataTypes = dc.ORM; |
|||
const sequelize = dc.orm; |
|||
const QualityCheckAlarm = sequelize.define("qualityCheckAlarm", { |
|||
id: { |
|||
type: DataTypes.BIGINT, |
|||
allowNull: false, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: true, |
|||
field: "id", |
|||
autoIncrement: true |
|||
}, |
|||
key: { |
|||
type: DataTypes.TEXT, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "key", |
|||
autoIncrement: false, |
|||
unique: "idx_unique_alarm_key" |
|||
}, |
|||
content: { |
|||
type: DataTypes.TEXT, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "content", |
|||
autoIncrement: false |
|||
}, |
|||
level: { |
|||
type: DataTypes.BIGINT, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "level", |
|||
autoIncrement: false |
|||
}, |
|||
time: { |
|||
type: DataTypes.DATE, |
|||
allowNull: true, |
|||
defaultValue: null, |
|||
comment: null, |
|||
primaryKey: false, |
|||
field: "time", |
|||
autoIncrement: false |
|||
} |
|||
}, { |
|||
tableName: "t_quality_check_alarm", |
|||
comment: "", |
|||
indexes: [] |
|||
}); |
|||
dc.models.QualityCheckAlarm = QualityCheckAlarm; |
|||
return QualityCheckAlarm; |
|||
}; |
@ -0,0 +1,9 @@ |
|||
DROP TABLE IF EXISTS "public"."dbStatistics"; |
|||
CREATE TABLE "public"."dbStatistics" ( |
|||
id serial NOT NULL PRIMARY KEY, |
|||
"dbName" varchar(255) COLLATE "pg_catalog"."default" NOT NULL, |
|||
"sourceId" int4 NOT NULL, |
|||
"dbRecordCount" int8 NOT NULL, |
|||
"time" timestamptz NOT NULL, |
|||
"description" varchar(255) NULL |
|||
); |
Loading…
Reference in new issue