2019-03-20 09:10:36 +00:00
|
|
|
{
|
|
|
|
"name": "Route",
|
2019-03-27 07:56:25 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"RouteLog"
|
|
|
|
},
|
2019-03-20 09:10:36 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2019-03-21 12:46:14 +00:00
|
|
|
"table": "route"
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-03-20 09:10:36 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"time": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"kmStart": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
|
|
|
"kmEnd": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
|
|
|
"started": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"finished": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"gestdoc": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "gestdocFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"cost": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
|
|
|
"m3": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2019-03-20 09:10:36 +00:00
|
|
|
},
|
|
|
|
"description": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2022-07-05 08:19:06 +00:00
|
|
|
},
|
|
|
|
"commissionWorkCenterFk": {
|
|
|
|
"type": "number"
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
},
|
|
|
|
"vehicle": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Vehicle",
|
|
|
|
"foreignKey": "vehicleFk"
|
|
|
|
},
|
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
|
|
|
"foreignKey": "agencyModeFk"
|
2019-03-22 10:10:23 +00:00
|
|
|
},
|
|
|
|
"ticket": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "routeFk"
|
2019-10-16 05:18:05 +00:00
|
|
|
},
|
|
|
|
"zone": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Zone",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
}
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
}
|