67 lines
1.4 KiB
JSON
67 lines
1.4 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": {
|
|
"neq": false
|
|
}
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
}
|