{ "name": "Province", "base": "MyModel", "validateUpsert": true, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "name": { "type": "string", "required": true } }, "relations": { "country": { "type": "belongsTo", "model": "Country", "foreignKey": "countryFk" }, "warehouse": { "type": "belongsTo", "model": "Warehouse", "foreignKey": "warehouseFk" }, "zone": { "type": "belongsTo", "model": "Zone", "foreignKey": "zoneFk" } }, "acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }