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.

59 lines
1.3 KiB

2 years ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ProblemReportConsult = sequelize.define("problemReportConsult", {
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: '工地id',
primaryKey: false,
field: "site_id",
autoIncrement: false
},
problemId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: '问题id',
primaryKey: false,
field: "problem_id",
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: null,
comment: '查阅人员',
primaryKey: false,
field: "name",
},
time: {
type: DataTypes.DATE,
allowNull: false,
defaultValue: null,
comment: '查阅时间',
primaryKey: false,
field: "time",
},
}, {
tableName: "problem_report_consult",
comment: "",
indexes: []
});
dc.models.ProblemReportConsult = ProblemReportConsult;
return ProblemReportConsult;
};