feat: refs #7119 add vehicle -dms and -invoiceIn
This commit is contained in:
parent
0dc77851c0
commit
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