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

67 lines
1.4 KiB
JSON
Raw Permalink Normal View History

2019-03-20 09:10:36 +00:00
{
"name": "Vehicle",
"base": "VnModel",
"options": {
"mysql": {
"table": "vehicle"
}
},
"properties": {
"id": {
2022-05-12 07:47:47 +00:00
"type": "number",
2019-03-20 09:10:36 +00:00
"id": true,
"description": "Identifier"
},
"numberPlate": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-03-20 09:10:36 +00:00
},
"tradeMark": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-03-20 09:10:36 +00:00
},
"model": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-03-20 09:10:36 +00:00
},
"m3": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-03-20 09:10:36 +00:00
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string"
2019-03-20 09:10:36 +00:00
},
"isActive": {
2022-05-12 07:47:47 +00:00
"type": "number"
2019-03-20 09:10:36 +00:00
}
},
"relations": {
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"deliveryPoint": {
"type": "belongsTo",
"model": "DeliveryPoint",
"foreignKey": "deliveryPointFk"
2019-03-20 09:10:36 +00:00
}
},
2019-03-21 11:50:34 +00:00
"scope": {
"where": {
2022-09-15 09:55:07 +00:00
"isActive": {
"neq": false
}
}
2019-03-21 11:50:34 +00:00
},
2019-03-20 09:10:36 +00:00
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}