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