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.
52 lines
1.4 KiB
52 lines
1.4 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const RoadSpotCheck = sequelize.define("roadSpotCheck", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "report_spot_check_v2_id_uindex"
|
|
},
|
|
roadId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: false,
|
|
field: "road_id",
|
|
autoIncrement: false
|
|
},
|
|
maintenanceCount: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "抽查时养护次数",
|
|
primaryKey: false,
|
|
field: "maintenance_count",
|
|
autoIncrement: false
|
|
},
|
|
prepareId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: "抽查预览id",
|
|
primaryKey: false,
|
|
field: "prepare_id",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "road_spot_check",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.RoadSpotCheck = RoadSpotCheck;
|
|
return RoadSpotCheck;
|
|
};
|