40 lines
678 B
JSON
40 lines
678 B
JSON
{
|
|
"name": "Province",
|
|
"base": "PersistedModel",
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"countryFk": {
|
|
"type": "Number"
|
|
},
|
|
"warehouseFk": {
|
|
"type": "Number"
|
|
},
|
|
"zoneFk": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"countryFk": {
|
|
"type": "hasOne",
|
|
"model": "Country",
|
|
"foreignKey": "id"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
} |