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.
110 lines
2.5 KiB
110 lines
2.5 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const RoadMaintenanceCost = sequelize.define("roadMaintenanceCost", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
},
|
|
mId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护id",
|
|
primaryKey: false,
|
|
field: "mId",
|
|
autoIncrement: false
|
|
},
|
|
countyName: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "管养责任单位",
|
|
primaryKey: false,
|
|
field: "county_name",
|
|
autoIncrement: false
|
|
},
|
|
|
|
roadLengthCounty: {
|
|
type: DataTypes.FLOAT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护长度",
|
|
primaryKey: false,
|
|
field: "road_length_county",
|
|
autoIncrement: false
|
|
},
|
|
roadCostCounty: {
|
|
type: DataTypes.DOUBLE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护费用",
|
|
primaryKey: false,
|
|
field: "road_cost_county",
|
|
autoIncrement: false
|
|
},
|
|
|
|
|
|
roadLengthVillage: {
|
|
type: DataTypes.FLOAT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护长度",
|
|
primaryKey: false,
|
|
field: "road_length_village",
|
|
autoIncrement: false
|
|
},
|
|
roadCostVillage: {
|
|
type: DataTypes.DOUBLE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护费用",
|
|
primaryKey: false,
|
|
field: "road_cost_village",
|
|
autoIncrement: false
|
|
},
|
|
|
|
|
|
roadLengthTownship: {
|
|
type: DataTypes.FLOAT,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护长度",
|
|
primaryKey: false,
|
|
field: "road_length_township",
|
|
autoIncrement: false
|
|
},
|
|
roadCostTownship: {
|
|
type: DataTypes.DOUBLE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护费用",
|
|
primaryKey: false,
|
|
field: "road_cost_township",
|
|
autoIncrement: false
|
|
},
|
|
maintenanceDate: {
|
|
type: DataTypes.DATE,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "养护日期",
|
|
primaryKey: false,
|
|
field: "maintenance_date",
|
|
autoIncrement: false
|
|
},
|
|
}, {
|
|
tableName: "road_maintenance_cost",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.RoadMaintenanceCost = RoadMaintenanceCost;
|
|
return RoadMaintenanceCost;
|
|
};
|