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