2016-11-17 11:56:35 +00:00
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"base": "PersistedModel",
|
2017-01-18 09:42:53 +00:00
|
|
|
"validateUpsert": true,
|
2016-11-17 11:56:35 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"clientFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
2017-04-28 13:04:29 +00:00
|
|
|
"consignee": {
|
2016-11-17 11:56:35 +00:00
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-17 11:56:35 +00:00
|
|
|
},
|
2017-04-28 13:04:29 +00:00
|
|
|
"street": {
|
2016-11-28 17:21:55 +00:00
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-28 17:21:55 +00:00
|
|
|
},
|
2016-11-17 11:56:35 +00:00
|
|
|
"city": {
|
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-17 11:56:35 +00:00
|
|
|
},
|
|
|
|
"postcode": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"provinceFk": {
|
2017-04-28 13:04:29 +00:00
|
|
|
"type": "Number"
|
2016-11-28 17:21:55 +00:00
|
|
|
},
|
2016-11-17 11:56:35 +00:00
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
2016-11-28 17:21:55 +00:00
|
|
|
},
|
|
|
|
"mobile": {
|
|
|
|
"type": "string"
|
2017-01-10 13:41:56 +00:00
|
|
|
},
|
2017-04-28 13:04:29 +00:00
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-01-10 13:41:56 +00:00
|
|
|
"default": {
|
|
|
|
"type": "boolean"
|
2017-05-05 11:32:07 +00:00
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"defaultAgencyFk": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"longitude": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"latitude": {
|
2017-05-05 11:32:07 +00:00
|
|
|
"type": "Number"
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
|
|
|
},
|
2017-03-14 12:08:55 +00:00
|
|
|
"validations": [],
|
2017-01-31 13:13:06 +00:00
|
|
|
"relations": {
|
2017-05-09 12:04:44 +00:00
|
|
|
"countryFk": {
|
|
|
|
"type": "hasOne",
|
2017-01-31 13:13:06 +00:00
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "id"
|
2017-02-21 10:36:43 +00:00
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"clientFk": {
|
2017-02-21 10:36:43 +00:00
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "id"
|
2017-05-05 11:32:07 +00:00
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"defaultAgencyFk": {
|
2017-05-05 11:32:07 +00:00
|
|
|
"type": "hasOne",
|
|
|
|
"model": "Agency",
|
|
|
|
"foreignKey": "id"
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2017-03-14 12:08:55 +00:00
|
|
|
},
|
|
|
|
"acls": [
|
|
|
|
{
|
|
|
|
"accessType": "*",
|
|
|
|
"principalType": "ROLE",
|
|
|
|
"principalId": "$everyone",
|
|
|
|
"permission": "ALLOW"
|
|
|
|
}
|
|
|
|
]
|
2016-11-17 11:56:35 +00:00
|
|
|
}
|