{ "name": "AgencyService", "base": "MyModel", "validateUpsert": true, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "name": { "type": "string", "required": true }, "description": { "type": "string" }, "m3": { "type": "Number" }, "inflation": { "type": "Number" }, "sendMailTo": { "type": "string" } }, "relations": { "agency": { "type": "belongsTo", "model": "Agency", "foreignKey": "agencyFk" }, "agencyType": { "type": "belongsTo", "model": "AgencyType", "foreignKey": "agencyTypeFk" } }, "acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "DENY" }, { "accessType": "*", "principalType": "ROLE", "principalId": "root", "permission": "ALLOW" } ] }