2017-10-13 14:22:45 +00:00
|
|
|
{
|
|
|
|
"name": "Province",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Provinces of every country",
|
2017-10-13 14:22:45 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "province"
|
|
|
|
}
|
|
|
|
},
|
2017-10-13 14:22:45 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"country": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "countryFk"
|
|
|
|
},
|
|
|
|
"warehouse": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Warehouse",
|
|
|
|
"foreignKey": "warehouseFk"
|
|
|
|
},
|
|
|
|
"zone": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Zone",
|
|
|
|
"foreignKey": "zoneFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|