2017-01-10 11:51:21 +00:00
|
|
|
{
|
|
|
|
"name": "Province",
|
|
|
|
"base": "PersistedModel",
|
2017-01-18 12:49:04 +00:00
|
|
|
"validateUpsert": true,
|
2017-01-10 11:51:21 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2017-05-09 12:04:44 +00:00
|
|
|
},
|
|
|
|
"countryFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"warehouseFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"zoneFk": {
|
|
|
|
"type": "Number"
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2017-03-14 12:08:55 +00:00
|
|
|
},
|
2017-04-28 13:04:29 +00:00
|
|
|
"relations": {
|
2017-05-09 12:04:44 +00:00
|
|
|
"countryFk": {
|
2017-04-28 13:04:29 +00:00
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "id"
|
|
|
|
}
|
|
|
|
},
|
2017-03-14 12:08:55 +00:00
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|