政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.
 
 
 
 

53 lines
1.3 KiB

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const Alarms = sequelize.define("alarms", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "ID唯一标识",
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "t_alarms_id_uindex"
},
content: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: "预警内容",
primaryKey: false,
field: "content",
autoIncrement: false
},
level: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: "预警等级",
primaryKey: false,
field: "level",
autoIncrement: false
},
time: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: null,
comment: "预警时间",
primaryKey: false,
field: "time",
autoIncrement: false
}
}, {
tableName: "t_alarms",
comment: "",
indexes: []
});
dc.models.Alarms = Alarms;
return Alarms;
};