Compare commits
3 Commits
dev
...
7119-vehic
Author | SHA1 | Date |
---|---|---|
Alex Moreno | 8b665284f2 | |
Alex Moreno | 46af3f9ec7 | |
Alex Moreno | 7704c5d2c6 |
|
@ -26,6 +26,12 @@
|
|||
"Vehicle": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"VehicleDms": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"VehicleInvoiceIn": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"RoutesMonitor": {
|
||||
"dataSource": "vn"
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"name": "VehicleDms",
|
||||
"base": "VnModel",
|
||||
"allowedContentTypes": [
|
||||
"image/png",
|
||||
"image/jpeg",
|
||||
"image/jpg"
|
||||
],
|
||||
"properties": {
|
||||
"dmsFk": {
|
||||
"type": "number",
|
||||
"id": true,
|
||||
"required": true
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"vehicle": {
|
||||
"type": "belongsTo",
|
||||
"model": "Vehicle",
|
||||
"foreignKey": "vehicleFk"
|
||||
},
|
||||
"dms": {
|
||||
"type": "belongsTo",
|
||||
"model": "Dms",
|
||||
"foreignKey": "dmsFk"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"name": "VehicleInvoiceIn",
|
||||
"base": "VnModel",
|
||||
"allowedContentTypes": [
|
||||
"image/png",
|
||||
"image/jpeg",
|
||||
"image/jpg"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "number",
|
||||
"id": true,
|
||||
"description": "Identifier"
|
||||
},
|
||||
"amount": {
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"relations": {
|
||||
"vehicle": {
|
||||
"type": "belongsTo",
|
||||
"model": "Vehicle",
|
||||
"foreignKey": "vehicleFk"
|
||||
},
|
||||
"invoiceIn": {
|
||||
"type": "belongsTo",
|
||||
"model": "InvoiceIn",
|
||||
"foreignKey": "invoiceInFk"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue