54 lines
1004 B
JSON
54 lines
1004 B
JSON
{
|
|
"name": "Country",
|
|
"base": "MyModel",
|
|
"validateUpsert": true,
|
|
"properties": {
|
|
"id": {
|
|
"type": "Number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"required": true
|
|
},
|
|
"inCee": {
|
|
"type": "Number"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"currency": {
|
|
"type": "belongsTo",
|
|
"model": "Currency",
|
|
"foreignKey": "currencyFk"
|
|
},
|
|
"realCountry": {
|
|
"type": "belongsTo",
|
|
"model": "Country",
|
|
"foreignKey": "realCountryFk"
|
|
}
|
|
},
|
|
"acls": [
|
|
{
|
|
"accessType": "READ",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "ALLOW"
|
|
},
|
|
{
|
|
"accessType": "WRITE",
|
|
"principalType": "ROLE",
|
|
"principalId": "$everyone",
|
|
"permission": "DENY"
|
|
},
|
|
{
|
|
"accessType": "*",
|
|
"principalType": "ROLE",
|
|
"principalId": "root",
|
|
"permission": "ALLOW"
|
|
}
|
|
]
|
|
} |