{ "name": "AgencyService", "base": "PersistedModel", "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": { "agencyFk": { "type": "belongsTo", "model": "Agency", "foreignKey": "agencyFk" }, "agencyTypeFk": { "type": "belongsTo", "model": "AgencyType", "foreignKey": "agencyTypeFk" } }, "acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }