{ "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": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }