2023-07-04 12:42:51 +00:00
|
|
|
{
|
|
|
|
"name": "Roadmap",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
2023-09-21 10:50:07 +00:00
|
|
|
"foreignKey": "id"
|
2023-07-04 12:42:51 +00:00
|
|
|
},
|
|
|
|
"supplier": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Supplier",
|
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
},
|
|
|
|
"expeditionTruck": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "ExpeditionTruck",
|
|
|
|
"foreignKey": "roadmapFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|