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.
385 lines
9.6 KiB
385 lines
9.6 KiB
3 years ago
|
/* eslint-disable*/
|
||
|
'use strict';
|
||
|
|
||
|
module.exports = dc => {
|
||
|
const DataTypes = dc.ORM;
|
||
|
const sequelize = dc.orm;
|
||
|
const MunicipalVehicle = sequelize.define("municipalVehicle", {
|
||
|
id: {
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: null,
|
||
|
primaryKey: true,
|
||
|
field: "id",
|
||
|
autoIncrement: true,
|
||
|
unique: "municipal_vehicle_id_uindex"
|
||
|
},
|
||
|
nameOfBusinessOwner: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "业户名称",
|
||
|
primaryKey: false,
|
||
|
field: "name_of_business_owner",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
productName: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "品名",
|
||
|
primaryKey: false,
|
||
|
field: "product_name",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleRegistry: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车籍地",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_registry",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
licensePlateNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车牌号",
|
||
|
primaryKey: false,
|
||
|
field: "license_plate_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
fuelType: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "燃料类型",
|
||
|
primaryKey: false,
|
||
|
field: "fuel_type",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
address: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "住址",
|
||
|
primaryKey: false,
|
||
|
field: "address",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
economicNature: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经济性质",
|
||
|
primaryKey: false,
|
||
|
field: "economic_nature",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
approvedPassengerCapacity: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "核定载客位数",
|
||
|
primaryKey: false,
|
||
|
field: "approved_passenger_capacity",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
approvedLoadMass: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "核定载质量",
|
||
|
primaryKey: false,
|
||
|
field: "approved_load_mass",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
numberOfVehicleAxles: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆车轴数",
|
||
|
primaryKey: false,
|
||
|
field: "number_of_vehicle_axles",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleBrand: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆厂牌",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_brand",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
natureOfBusiness: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营范围",
|
||
|
primaryKey: false,
|
||
|
field: "nature_of_business",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleOperationStatus: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆营运状态",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_operation_status",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
busTypeAndClass: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "客车类型与等级",
|
||
|
primaryKey: false,
|
||
|
field: "bus_type_and_class",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
annualReviewResults: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "年审结果",
|
||
|
primaryKey: false,
|
||
|
field: "annual_review_results",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
dateOfThisAnnualReview: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "本次年审日期",
|
||
|
primaryKey: false,
|
||
|
field: "date_of_this_annual_review",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
dateOfNextAnnualReview: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "下次年审日期",
|
||
|
primaryKey: false,
|
||
|
field: "date_of_next_annual_review",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
dateOfRegistration: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "注册登记日期",
|
||
|
primaryKey: false,
|
||
|
field: "date_of_registration",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
sourceOfTransportationCapacity: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "运力来源",
|
||
|
primaryKey: false,
|
||
|
field: "source_of_transportation_capacity",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
fromTheExpiryDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "有效期起",
|
||
|
primaryKey: false,
|
||
|
field: "from_the_expiry_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
expiryDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "有效期止",
|
||
|
primaryKey: false,
|
||
|
field: "expiry_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
engineDisplacement: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "发动机排量",
|
||
|
primaryKey: false,
|
||
|
field: "engine_displacement",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
engineNumber: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "发动机号",
|
||
|
primaryKey: false,
|
||
|
field: "engine_number",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleEnginePower: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆发动机功率",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_engine_power",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
businessLicenseNo: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "经营许可证号",
|
||
|
primaryKey: false,
|
||
|
field: "business_license_no",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
licensePlateColor: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车牌颜色",
|
||
|
primaryKey: false,
|
||
|
field: "license_plate_color",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
totalVehicleMass: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆总质量",
|
||
|
primaryKey: false,
|
||
|
field: "total_vehicle_mass",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
totalQuasiTractionMassOfVehicle: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆准牵引总质量",
|
||
|
primaryKey: false,
|
||
|
field: "total_quasi_traction_mass_of_vehicle",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
roadTransportCertificateNo: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "道路运输证号",
|
||
|
primaryKey: false,
|
||
|
field: "road_transport_certificate_no",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleHeight: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆车高",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_height",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleConductor: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆车长",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_conductor",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleWidth: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆车宽",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_width",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleType: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆类型",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_type",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleTypeWithDrivingLicense: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "行驶证车辆类型",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_type_with_driving_license",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
vehicleWheelbase: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "车辆轴距",
|
||
|
primaryKey: false,
|
||
|
field: "vehicle_wheelbase",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
ratingDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "等级评定日期",
|
||
|
primaryKey: false,
|
||
|
field: "rating_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
technicalEvaluationGrade: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "技术评定等级",
|
||
|
primaryKey: false,
|
||
|
field: "technical_evaluation_grade",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
nextRatingDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "下次等级评定日期",
|
||
|
primaryKey: false,
|
||
|
field: "next_rating_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
creationDate: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: true,
|
||
|
defaultValue: null,
|
||
|
comment: "创建日期",
|
||
|
primaryKey: false,
|
||
|
field: "creation_date",
|
||
|
autoIncrement: false
|
||
|
},
|
||
|
type: {
|
||
|
type: DataTypes.STRING,
|
||
|
allowNull: false,
|
||
|
defaultValue: null,
|
||
|
comment: "类型 出租车/危货",
|
||
|
primaryKey: false,
|
||
|
field: "type",
|
||
|
autoIncrement: false
|
||
|
}
|
||
|
}, {
|
||
|
tableName: "municipal_vehicle",
|
||
|
comment: "",
|
||
|
indexes: []
|
||
|
});
|
||
|
dc.models.MunicipalVehicle = MunicipalVehicle;
|
||
|
return MunicipalVehicle;
|
||
|
};
|