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