Compare commits

...

3 Commits

3 changed files with 65 additions and 0 deletions

View File

@ -26,6 +26,12 @@
"Vehicle": { "Vehicle": {
"dataSource": "vn" "dataSource": "vn"
}, },
"VehicleDms": {
"dataSource": "vn"
},
"VehicleInvoiceIn": {
"dataSource": "vn"
},
"RoutesMonitor": { "RoutesMonitor": {
"dataSource": "vn" "dataSource": "vn"
} }

View File

@ -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"
}
}
}

View File

@ -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"
}
}
}