/* 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; };