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

76 lines
1.5 KiB
JSON
Raw Normal View History

{
"name": "Roadmap",
"base": "VnModel",
"options": {
"mysql": {
2024-05-31 11:08:48 +00:00
"table": "roadmap"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"name": {
"type": "string"
},
"tractorPlate": {
"type": "string"
},
"trailerPlate": {
"type": "string"
},
"phone": {
"type": "string"
},
"supplierFk": {
"type": "number"
},
"etd": {
"type": "date"
},
"observations": {
"type": "string"
},
"userFk": {
"type": "number"
},
"price": {
"type": "number"
},
"driverName": {
"type": "string"
2024-06-03 16:39:11 +00:00
},
"kmStart": {
"type": "number"
},
"kmEnd": {
"type": "number"
},
"started": {
"type": "date"
},
"finished": {
"type": "date"
}
},
2024-05-31 11:08:48 +00:00
"relations": {
"worker": {
"type": "belongsTo",
"model": "Worker",
2023-09-21 10:50:07 +00:00
"foreignKey": "id"
},
"supplier": {
"type": "belongsTo",
"model": "Supplier",
"foreignKey": "supplierFk"
},
2024-05-20 10:28:27 +00:00
"roadmapStop": {
"type": "hasMany",
2024-05-20 11:27:38 +00:00
"model": "RoadmapStop",
"foreignKey": "roadmapFk"
}
2024-05-31 11:08:48 +00:00
}
}