2017-01-10 11:51:21 +00:00
|
|
|
{
|
|
|
|
"name": "Country",
|
2017-05-17 12:58:23 +00:00
|
|
|
"base": "MyModel",
|
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
|
|
|
},
|
|
|
|
"inCee": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "string"
|
2017-05-12 09:14:55 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2017-05-12 11:36:12 +00:00
|
|
|
"currency": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Currency",
|
|
|
|
"foreignKey": "currencyFk"
|
2017-05-09 12:04:44 +00:00
|
|
|
},
|
2017-05-12 11:36:12 +00:00
|
|
|
"realCountry": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "realCountryFk"
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2017-03-14 12:08:55 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
2017-05-30 12:17:01 +00:00
|
|
|
"accessType": "READ",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "WRITE",
|
2017-03-14 12:08:55 +00:00
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
2017-05-30 12:17:01 +00:00
|
|
|
"permission": "DENY"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "root",
|
2017-03-14 12:08:55 +00:00
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|