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.
256 lines
7.3 KiB
256 lines
7.3 KiB
/* eslint-disable*/
|
|
'use strict';
|
|
|
|
module.exports = dc => {
|
|
const DataTypes = dc.ORM;
|
|
const sequelize = dc.orm;
|
|
const BusLine = sequelize.define("busLine", {
|
|
id: {
|
|
index: 1,
|
|
type: DataTypes.INTEGER,
|
|
allowNull: false,
|
|
defaultValue: null,
|
|
comment: null,
|
|
primaryKey: true,
|
|
field: "id",
|
|
autoIncrement: true,
|
|
unique: "bus_line_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
|
|
},
|
|
carCaptain: {
|
|
index: 4,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车队长",
|
|
primaryKey: false,
|
|
field: "car_captain",
|
|
autoIncrement: false
|
|
},
|
|
assistantCarCaptain: {
|
|
index: 5,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "副车队长",
|
|
primaryKey: false,
|
|
field: "assistant_car_captain",
|
|
autoIncrement: false
|
|
},
|
|
officeLocation: {
|
|
index: 6,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "办公地点",
|
|
primaryKey: false,
|
|
field: "office_location",
|
|
autoIncrement: false
|
|
},
|
|
lineName: {
|
|
index: 7,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "线路名称",
|
|
primaryKey: false,
|
|
field: "line_name",
|
|
autoIncrement: false
|
|
},
|
|
lineType: {
|
|
index: 8,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "线路类型",
|
|
primaryKey: false,
|
|
field: "line_type",
|
|
autoIncrement: false
|
|
},
|
|
lineDivision: {
|
|
index: 9,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "线路划分",
|
|
primaryKey: false,
|
|
field: "line_division",
|
|
autoIncrement: false
|
|
},
|
|
gpsNumber: {
|
|
index: 10,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "GPS编号",
|
|
primaryKey: false,
|
|
field: "gps_number",
|
|
autoIncrement: false
|
|
},
|
|
startingPointEndPoint: {
|
|
index: 11,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "起点终点",
|
|
primaryKey: false,
|
|
field: "starting_point_end_point",
|
|
autoIncrement: false
|
|
},
|
|
numberOfVehicles: {
|
|
index: 12,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "车辆数",
|
|
primaryKey: false,
|
|
field: "number_of_vehicles",
|
|
autoIncrement: false
|
|
},
|
|
totalKilometers: {
|
|
index: 13,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "全程公里数",
|
|
primaryKey: false,
|
|
field: "total_kilometers",
|
|
autoIncrement: false
|
|
},
|
|
ticketPrice: {
|
|
index: 14,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "票价",
|
|
primaryKey: false,
|
|
field: "ticket_price",
|
|
autoIncrement: false
|
|
},
|
|
openingTime: {
|
|
index: 15,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "开通时间",
|
|
primaryKey: false,
|
|
field: "opening_time",
|
|
autoIncrement: false
|
|
},
|
|
runningTime: {
|
|
index: 16,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "运行时间",
|
|
primaryKey: false,
|
|
field: "running_time",
|
|
autoIncrement: false
|
|
},
|
|
openingTimeSummer: {
|
|
index: 17,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "开班时间夏令",
|
|
primaryKey: false,
|
|
field: "opening_time_summer",
|
|
autoIncrement: false
|
|
},
|
|
shiftClosingTimeSummer: {
|
|
index: 18,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "收班时间夏令",
|
|
primaryKey: false,
|
|
field: "shift_closing_time_summer",
|
|
autoIncrement: false
|
|
},
|
|
openingTimeWinter: {
|
|
index: 19,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "开班时间冬令",
|
|
primaryKey: false,
|
|
field: "opening_time_winter",
|
|
autoIncrement: false
|
|
},
|
|
shiftClosingTimeWinter: {
|
|
index: 20,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "收班时间冬令",
|
|
primaryKey: false,
|
|
field: "shift_closing_time_winter",
|
|
autoIncrement: false
|
|
},
|
|
uplinkOfStationsAlongTheWay: {
|
|
index: 21,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "沿途站点上行",
|
|
primaryKey: false,
|
|
field: "uplink_of_stations_along_the_way",
|
|
autoIncrement: false
|
|
},
|
|
downlinkOfStationsAlongTheWay: {
|
|
index: 22,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "沿途站点下行",
|
|
primaryKey: false,
|
|
field: "downlink_of_stations_along_the_way",
|
|
autoIncrement: false
|
|
},
|
|
area: {
|
|
index: 23,
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
defaultValue: null,
|
|
comment: "所属区域",
|
|
primaryKey: false,
|
|
field: "area",
|
|
autoIncrement: false
|
|
},
|
|
remarks: {
|
|
index: 24,
|
|
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;
|
|
};
|