2019-03-20 09:10:36 +00:00
|
|
|
{
|
|
|
|
"name": "Route",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2019-03-21 12:46:14 +00:00
|
|
|
"table": "route"
|
2019-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"time": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"kmStart": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"kmEnd": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"started": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"finished": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"gestdoc": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "gestdocFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"cost": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"m3": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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-03-20 09:10:36 +00:00
|
|
|
}
|
|
|
|
}
|