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

65 lines
1.3 KiB
JSON

{
"name": "Vehicle",
"base": "VnModel",
"options": {
"mysql": {
"table": "vehicle"
}
},
"properties": {
"id": {
"type": "number",
"id": true,
"description": "Identifier"
},
"numberPlate": {
"type": "string"
},
"tradeMark": {
"type": "string"
},
"model": {
"type": "string"
},
"m3": {
"type": "number"
},
"description": {
"type": "string"
},
"isActive": {
"type": "number"
}
},
"relations": {
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "companyFk"
},
"warehouse": {
"type": "belongsTo",
"model": "Warehouse",
"foreignKey": "warehouseFk"
},
"deliveryPoint": {
"type": "belongsTo",
"model": "DeliveryPoint",
"foreignKey": "deliveryPointFk"
}
},
"scope": {
"where": {
"isActive": true
}
},
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}