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.
493 lines
12 KiB
493 lines
12 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const BusCar = sequelize.define("busCar", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "bus_car_id_uindex"
|
|
},
|
|
company: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "所属公司",
|
|
primaryKey: false,
|
|
field: "company",
|
|
autoIncrement: false
|
|
},
|
|
fleet: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "所属车队",
|
|
primaryKey: false,
|
|
field: "fleet",
|
|
autoIncrement: false
|
|
},
|
|
line: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "所属线路",
|
|
primaryKey: false,
|
|
field: "line",
|
|
autoIncrement: false
|
|
},
|
|
vehicleNumber: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆编号",
|
|
primaryKey: false,
|
|
field: "vehicle_number",
|
|
autoIncrement: false
|
|
},
|
|
vehicleLicensePlateNumber: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆牌照号",
|
|
primaryKey: false,
|
|
field: "vehicle_license_plate_number",
|
|
autoIncrement: false
|
|
},
|
|
operationCategory: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "运营类别",
|
|
primaryKey: false,
|
|
field: "operation_category",
|
|
autoIncrement: false
|
|
},
|
|
serviceLife: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "已使用年限",
|
|
primaryKey: false,
|
|
field: "service_life",
|
|
autoIncrement: false
|
|
},
|
|
engineModel: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "发动机型号",
|
|
primaryKey: false,
|
|
field: "engine_model",
|
|
autoIncrement: false
|
|
},
|
|
vehicleModel: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆型号",
|
|
primaryKey: false,
|
|
field: "vehicle_model",
|
|
autoIncrement: false
|
|
},
|
|
vehicleCategory: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆类别",
|
|
primaryKey: false,
|
|
field: "vehicle_category",
|
|
autoIncrement: false
|
|
},
|
|
vehicleStatus: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆状态",
|
|
primaryKey: false,
|
|
field: "vehicle_status",
|
|
autoIncrement: false
|
|
},
|
|
dateOfEntry: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "入户日期",
|
|
primaryKey: false,
|
|
field: "date_of_entry",
|
|
autoIncrement: false
|
|
},
|
|
purchaseDate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "购进日期",
|
|
primaryKey: false,
|
|
field: "purchase_date",
|
|
autoIncrement: false
|
|
},
|
|
energyConsumptionType: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "能耗类型",
|
|
primaryKey: false,
|
|
field: "energy_consumption_type",
|
|
autoIncrement: false
|
|
},
|
|
numberOfStandardUnits: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "标台数",
|
|
primaryKey: false,
|
|
field: "number_of_standard_units",
|
|
autoIncrement: false
|
|
},
|
|
maintenanceUnit: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "维保单位",
|
|
primaryKey: false,
|
|
field: "maintenance_unit",
|
|
autoIncrement: false
|
|
},
|
|
vehicleType: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆类型",
|
|
primaryKey: false,
|
|
field: "vehicle_type",
|
|
autoIncrement: false
|
|
},
|
|
brandAndModel: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "厂牌型号",
|
|
primaryKey: false,
|
|
field: "brand_and_model",
|
|
autoIncrement: false
|
|
},
|
|
manufacturer: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "生产厂家",
|
|
primaryKey: false,
|
|
field: "manufacturer",
|
|
autoIncrement: false
|
|
},
|
|
drivingLicenseNo: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "行驶证编号",
|
|
primaryKey: false,
|
|
field: "driving_license_no",
|
|
autoIncrement: false
|
|
},
|
|
engineNumber: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "发动机编号",
|
|
primaryKey: false,
|
|
field: "engine_number",
|
|
autoIncrement: false
|
|
},
|
|
mainEnergyConsumption: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "主能耗",
|
|
primaryKey: false,
|
|
field: "main_energy_consumption",
|
|
autoIncrement: false
|
|
},
|
|
secondaryEnergyConsumption: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "副能耗",
|
|
primaryKey: false,
|
|
field: "secondary_energy_consumption",
|
|
autoIncrement: false
|
|
},
|
|
emissionStandard: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "排放标准",
|
|
primaryKey: false,
|
|
field: "emission_standard",
|
|
autoIncrement: false
|
|
},
|
|
startDate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "启用日期",
|
|
primaryKey: false,
|
|
field: "start_date",
|
|
autoIncrement: false
|
|
},
|
|
lastTransferDate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "最近一次调动日期",
|
|
primaryKey: false,
|
|
field: "last_transfer_date",
|
|
autoIncrement: false
|
|
},
|
|
conductor: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车长",
|
|
primaryKey: false,
|
|
field: "conductor",
|
|
autoIncrement: false
|
|
},
|
|
vehicleWidth: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车宽",
|
|
primaryKey: false,
|
|
field: "vehicle_width",
|
|
autoIncrement: false
|
|
},
|
|
carHeight: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车高",
|
|
primaryKey: false,
|
|
field: "car_height",
|
|
autoIncrement: false
|
|
},
|
|
approvedPassengerCapacity: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "核定载客数",
|
|
primaryKey: false,
|
|
field: "approved_passenger_capacity",
|
|
autoIncrement: false
|
|
},
|
|
vehicleIdentificationNumber: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆识别号",
|
|
primaryKey: false,
|
|
field: "vehicle_identification_number",
|
|
autoIncrement: false
|
|
},
|
|
gearboxBrand: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "变速箱品牌",
|
|
primaryKey: false,
|
|
field: "gearbox_brand",
|
|
autoIncrement: false
|
|
},
|
|
manualCarWashingFee: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "人工洗车费",
|
|
primaryKey: false,
|
|
field: "manual_car_washing_fee",
|
|
autoIncrement: false
|
|
},
|
|
laborCost: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "劳务费",
|
|
primaryKey: false,
|
|
field: "labor_cost",
|
|
autoIncrement: false
|
|
},
|
|
curbWeight: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "整备质量",
|
|
primaryKey: false,
|
|
field: "curb_weight",
|
|
autoIncrement: false
|
|
},
|
|
totalMass: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "总质量",
|
|
primaryKey: false,
|
|
field: "total_mass",
|
|
autoIncrement: false
|
|
},
|
|
airConditioningTemperature: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "空调温度",
|
|
primaryKey: false,
|
|
field: "air_conditioning_temperature",
|
|
autoIncrement: false
|
|
},
|
|
airConditionedCarOrNot: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "是否空调车",
|
|
primaryKey: false,
|
|
field: "air_conditioned_car_or_not",
|
|
autoIncrement: false
|
|
},
|
|
turnOnTheAirConditioningTemperature: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "开空调温度",
|
|
primaryKey: false,
|
|
field: "turn_on_the_air_conditioning_temperature",
|
|
autoIncrement: false
|
|
},
|
|
power: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "功率",
|
|
primaryKey: false,
|
|
field: "power",
|
|
autoIncrement: false
|
|
},
|
|
transmission: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "变速器",
|
|
primaryKey: false,
|
|
field: "transmission",
|
|
autoIncrement: false
|
|
},
|
|
seatingCapacity: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "座位数",
|
|
primaryKey: false,
|
|
field: "seating_capacity",
|
|
autoIncrement: false
|
|
},
|
|
airConditioningBrand: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "空调品牌",
|
|
primaryKey: false,
|
|
field: "air_conditioning_brand",
|
|
autoIncrement: false
|
|
},
|
|
seatType: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "座椅类型",
|
|
primaryKey: false,
|
|
field: "seat_type",
|
|
autoIncrement: false
|
|
},
|
|
tireSpecifications: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "轮胎规格",
|
|
primaryKey: false,
|
|
field: "tire_specifications",
|
|
autoIncrement: false
|
|
},
|
|
roadTransportCertificateNo: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "道路运输证号",
|
|
primaryKey: false,
|
|
field: "road_transport_certificate_no",
|
|
autoIncrement: false
|
|
},
|
|
parkingPoint: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "停放点",
|
|
primaryKey: false,
|
|
field: "parking_point",
|
|
autoIncrement: false
|
|
},
|
|
carWashingType: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "洗车类型",
|
|
primaryKey: false,
|
|
field: "car_washing_type",
|
|
autoIncrement: false
|
|
},
|
|
maintenanceFreeWheelEnd: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "免维护轮端",
|
|
primaryKey: false,
|
|
field: "maintenance_free_wheel_end",
|
|
autoIncrement: false
|
|
},
|
|
firstGuaranteeDate: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "首保日期",
|
|
primaryKey: false,
|
|
field: "first_guarantee_date",
|
|
autoIncrement: false
|
|
},
|
|
dateOfRenovation: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "整修日期",
|
|
primaryKey: false,
|
|
field: "date_of_renovation",
|
|
autoIncrement: false
|
|
},
|
|
motorVehicleOwner: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "机动车所有人",
|
|
primaryKey: false,
|
|
field: "motor_vehicle_owner",
|
|
autoIncrement: false
|
|
}
|
|
}, {
|
|
tableName: "bus_car",
|
|
comment: "",
|
|
indexes: []
|
|
});
|
|
dc.models.BusCar = BusCar;
|
|
return BusCar;
|
|
};
|