四好公路
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.

60 lines
1.6 KiB

1 year ago
/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const ReportSpotCheck = sequelize.define("reportSpotCheck", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true,
unique: "report_spot_check_id_uindex"
},
reportId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "report_id",
autoIncrement: false,
references: {
key: "id",
model: "report"
}
},
spotDate: {
type: DataTypes.DATEONLY,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "spot_date",
autoIncrement: false
},
prepareId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: false,
field: "prepare_id",
autoIncrement: false,
references: {
key: "id",
model: "reportSpotCheckPreview"
}
}
}, {
tableName: "report_spot_check",
comment: "",
indexes: []
});
dc.models.ReportSpotCheck = ReportSpotCheck;
return ReportSpotCheck;
};