运维服务中台
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.5 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const StructureOff = sequelize.define("structureOff", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "t_structure_off_id_uindex"
},
structure: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "结构物id",
primaryKey: false,
field: "structure",
autoIncrement: false
},
offline: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "离线时长(分钟)",
primaryKey: false,
field: "offline",
autoIncrement: false
},
offtime: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "最后数据时间",
primaryKey: false,
field: "offtime",
autoIncrement: false
},
state: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "数据状态( 0:有效,1:无效)",
primaryKey: false,
field: "state",
autoIncrement: false
}
}, {
tableName: "t_structure_off",
comment: "",
indexes: []
});
dc.models.StructureOff = StructureOff;
return StructureOff;
};