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.
62 lines
1.3 KiB
62 lines
1.3 KiB
2 years ago
|
/* 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;
|
||
|
};
|