salix/modules/route/back/models/route.json

86 lines
1.7 KiB
JSON

{
"name": "Route",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"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"
},
"isOk": {
"type": "boolean"
},
"commissionWorkCenterFk": {
"type": "number"
}
},
"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"
}
}
}