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.
187 lines
4.4 KiB
187 lines
4.4 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const Overspeed = sequelize.define("overspeed", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "overspeed_id_uindex"
|
|
},
|
|
districtcounty: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "区/县",
|
|
primaryKey: false,
|
|
field: "districtcounty",
|
|
autoIncrement: false
|
|
},
|
|
nameOfInspectionPoint: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "检测点名称",
|
|
primaryKey: false,
|
|
field: "name_of_inspection_point",
|
|
autoIncrement: false
|
|
},
|
|
licensePlate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车牌号码",
|
|
primaryKey: false,
|
|
field: "license_plate",
|
|
autoIncrement: false
|
|
},
|
|
numberOfAxles: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车轴数",
|
|
primaryKey: false,
|
|
field: "number_of_axles",
|
|
autoIncrement: false
|
|
},
|
|
overrunRate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "超限率",
|
|
primaryKey: false,
|
|
field: "overrun_rate",
|
|
autoIncrement: false
|
|
},
|
|
overrunWeight: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "超限重量",
|
|
primaryKey: false,
|
|
field: "overrun_weight",
|
|
autoIncrement: false
|
|
},
|
|
grossVehicleWeight: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车货总重",
|
|
primaryKey: false,
|
|
field: "gross_vehicle_weight",
|
|
autoIncrement: false
|
|
},
|
|
vehicleCargoWeightLimit: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车货限重",
|
|
primaryKey: false,
|
|
field: "vehicle_cargo_weight_limit",
|
|
autoIncrement: false
|
|
},
|
|
testTime: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "检测时间",
|
|
primaryKey: false,
|
|
field: "test_time",
|
|
autoIncrement: false
|
|
},
|
|
nameOfBusinessOwner: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营业户名称",
|
|
primaryKey: false,
|
|
field: "name_of_business_owner",
|
|
autoIncrement: false
|
|
},
|
|
businessAddress: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "经营业户地址",
|
|
primaryKey: false,
|
|
field: "business_address",
|
|
autoIncrement: false
|
|
},
|
|
notifier: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "通知人",
|
|
primaryKey: false,
|
|
field: "notifier",
|
|
autoIncrement: false
|
|
},
|
|
notificationMethod: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "通知方式",
|
|
primaryKey: false,
|
|
field: "notification_method",
|
|
autoIncrement: false
|
|
},
|
|
notificationResults: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "通知结果",
|
|
primaryKey: false,
|
|
field: "notification_results",
|
|
autoIncrement: false
|
|
},
|
|
processingTime: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "处理时间",
|
|
primaryKey: false,
|
|
field: "processing_time",
|
|
autoIncrement: false
|
|
},
|
|
deductPoints: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "扣分",
|
|
primaryKey: false,
|
|
field: "deduct_points",
|
|
autoIncrement: false
|
|
},
|
|
fine: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "罚款",
|
|
primaryKey: false,
|
|
field: "fine",
|
|
autoIncrement: false
|
|
},
|
|
remarks: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "备注",
|
|
primaryKey: false,
|
|
field: "remarks",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "overspeed",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.Overspeed = Overspeed;
|
|
return Overspeed;
|
|
};
|