/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const AdvisoryNotice = sequelize.define("AdvisoryNotice", { id: { field: "id", type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true, }, title: { field: "title", type: DataTypes.STRING, allowNull: false, primaryKey: false, autoIncrement: false }, publishTime: { field: "publish_time", type: DataTypes.DATE, allowNull: true, primaryKey: false, autoIncrement: false, timezone: false, // 设置为 false 表示不带时区信息的时间戳 }, state: { field: "state", type: DataTypes.INTEGER, allowNull: false, primaryKey: false, autoIncrement: false }, content: { field: "content", type: DataTypes.TEXT, allowNull: false, primaryKey: false, autoIncrement: false }, attachments: { type: DataTypes.ARRAY(DataTypes.STRING), allowNull: false, comment: null, primaryKey: false, field: "attachments", autoIncrement: false }, }, { tableName: "advisory_notice", comment: "", indexes: [] }); dc.models.AdvisoryNotice = AdvisoryNotice; return AdvisoryNotice; };