80 lines
1.6 KiB
JSON
80 lines
1.6 KiB
JSON
{
|
|
"name": "Route",
|
|
"base": "Loggable",
|
|
"log": {
|
|
"model":"RouteLog"
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "route"
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"ticket": {
|
|
"type": "hasMany",
|
|
"model": "Ticket",
|
|
"foreignKey": "routeFk"
|
|
},
|
|
"zone": {
|
|
"type": "belongsTo",
|
|
"model": "Zone",
|
|
"foreignKey": "zoneFk"
|
|
}
|
|
}
|
|
}
|