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

65 lines
1.3 KiB
JSON
Raw Normal View History

2019-03-20 09:10:36 +00:00
{
"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"
2019-03-20 09:10:36 +00:00
}
},
2019-03-21 11:50:34 +00:00
"scope": {
"where": {
"isActive": true
}
},
2019-03-20 09:10:36 +00:00
"acls": [
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
}
]
}