{ "name": "Autonomy", "description": "Autonomies of every country", "base": "VnModel", "options": { "mysql": { "table": "autonomy" } }, "properties": { "id": { "type": "number", "id": true, "description": "Identifier" }, "name": { "type": "string", "required": true }, "hasDailyInvoice": { "type": "boolean", "description": "Indicates if the autonomy has daily invoice enabled" } }, "relations": { "country": { "type": "belongsTo", "model": "Country", "foreignKey": "countryFk" } }, "scopes": { "location": { "include": { "relation": "country" } } }, "acls": [ { "accessType": "READ", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }