{ "name": "Address", "base": "PersistedModel", "validateUpsert": true, "properties": { "id": { "type": "Number", "id": true, "description": "Identifier" }, "consignee": { "type": "string", "required": true }, "street": { "type": "string", "required": true }, "city": { "type": "string", "required": true }, "postcode": { "type": "string" }, "province": { "type": "Number" }, "phone": { "type": "string" }, "mobile": { "type": "string" }, "enabled": { "type": "boolean" }, "default": { "type": "boolean" }, "defaultAgency": { "type": "Number" } }, "validations": [], "relations": { "country": { "type": "belongsTo", "model": "Country", "foreignKey": "id" }, "client": { "type": "hasOne", "model": "Client", "foreignKey": "id" }, "defaultAgency": { "type": "hasOne", "model": "Agency", "foreignKey": "id" } }, "acls": [ { "accessType": "*", "principalType": "ROLE", "principalId": "$everyone", "permission": "ALLOW" } ] }