/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const ProblemReport = sequelize.define("problemReport", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true }, siteId: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "siteId", autoIncrement: false }, type: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "type", autoIncrement: false }, title: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "title", autoIncrement: false }, describe: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "describe", autoIncrement: false }, urgencyDegree: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "urgency_degree", autoIncrement: false }, isReaded: { type: DataTypes.BOOLEAN, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "isReaded", autoIncrement: false }, reportTime: { type: DataTypes.DATE, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "report_time", autoIncrement: false }, reporter: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "reporter", autoIncrement: false, references: { key: "id", model: "tUser" } }, source: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "source", autoIncrement: false }, }, { tableName: "problem_report", comment: "", indexes: [] }); dc.models.ProblemReport = ProblemReport; return ProblemReport; };