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.
		
		
		
		
		
			
		
			
				
					
					
						
							232 lines
						
					
					
						
							5.5 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							232 lines
						
					
					
						
							5.5 KiB
						
					
					
				| /* eslint-disable*/ | |
| 'use strict'; | |
| 
 | |
| module.exports = dc => { | |
|   const DataTypes = dc.ORM; | |
|   const sequelize = dc.orm; | |
|   const BusLine = sequelize.define("busLine", { | |
|     id: { | |
|       type: DataTypes.INTEGER, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: true, | |
|       field: "id", | |
|       autoIncrement: true, | |
|       unique: "bus_line_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 | |
|     }, | |
|     carCaptain: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "车队长", | |
|       primaryKey: false, | |
|       field: "car_captain", | |
|       autoIncrement: false | |
|     }, | |
|     assistantCarCaptain: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "副车队长", | |
|       primaryKey: false, | |
|       field: "assistant_car_captain", | |
|       autoIncrement: false | |
|     }, | |
|     officeLocation: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "办公地点", | |
|       primaryKey: false, | |
|       field: "office_location", | |
|       autoIncrement: false | |
|     }, | |
|     lineName: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "线路名称", | |
|       primaryKey: false, | |
|       field: "line_name", | |
|       autoIncrement: false | |
|     }, | |
|     lineType: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "线路类型", | |
|       primaryKey: false, | |
|       field: "line_type", | |
|       autoIncrement: false | |
|     }, | |
|     lineDivision: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "线路划分", | |
|       primaryKey: false, | |
|       field: "line_division", | |
|       autoIncrement: false | |
|     }, | |
|     gpsNumber: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "GPS编号", | |
|       primaryKey: false, | |
|       field: "gps_number", | |
|       autoIncrement: false | |
|     }, | |
|     startingPointEndPoint: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "起点终点", | |
|       primaryKey: false, | |
|       field: "starting_point_end_point", | |
|       autoIncrement: false | |
|     }, | |
|     numberOfVehicles: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "车辆数", | |
|       primaryKey: false, | |
|       field: "number_of_vehicles", | |
|       autoIncrement: false | |
|     }, | |
|     totalKilometers: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "全程公里数", | |
|       primaryKey: false, | |
|       field: "total_kilometers", | |
|       autoIncrement: false | |
|     }, | |
|     ticketPrice: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "票价", | |
|       primaryKey: false, | |
|       field: "ticket_price", | |
|       autoIncrement: false | |
|     }, | |
|     openingTime: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "开通时间", | |
|       primaryKey: false, | |
|       field: "opening_time", | |
|       autoIncrement: false | |
|     }, | |
|     runningTime: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "运行时间", | |
|       primaryKey: false, | |
|       field: "running_time", | |
|       autoIncrement: false | |
|     }, | |
|     openingTimeSummer: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "开班时间夏令", | |
|       primaryKey: false, | |
|       field: "opening_time_summer", | |
|       autoIncrement: false | |
|     }, | |
|     shiftClosingTimeSummer: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "收班时间夏令", | |
|       primaryKey: false, | |
|       field: "shift_closing_time_summer", | |
|       autoIncrement: false | |
|     }, | |
|     openingTimeWinter: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "开班时间冬令", | |
|       primaryKey: false, | |
|       field: "opening_time_winter", | |
|       autoIncrement: false | |
|     }, | |
|     shiftClosingTimeWinter: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "收班时间冬令", | |
|       primaryKey: false, | |
|       field: "shift_closing_time_winter", | |
|       autoIncrement: false | |
|     }, | |
|     uplinkOfStationsAlongTheWay: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "沿途站点上行", | |
|       primaryKey: false, | |
|       field: "uplink_of_stations_along_the_way", | |
|       autoIncrement: false | |
|     }, | |
|     downlinkOfStationsAlongTheWay: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "沿途站点下行", | |
|       primaryKey: false, | |
|       field: "downlink_of_stations_along_the_way", | |
|       autoIncrement: false | |
|     }, | |
|     area: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "所属区域", | |
|       primaryKey: false, | |
|       field: "area", | |
|       autoIncrement: false | |
|     }, | |
|     remarks: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: "备注", | |
|       primaryKey: false, | |
|       field: "remarks", | |
|       autoIncrement: false | |
|     } | |
|   }, { | |
|     tableName: "bus_line", | |
|     comment: "", | |
|     indexes: [] | |
|   }); | |
|   dc.models.BusLine = BusLine; | |
|   return BusLine; | |
| }; |