2016-11-17 11:56:35 +00:00
|
|
|
{
|
|
|
|
"name": "Address",
|
|
|
|
"base": "PersistedModel",
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"street": {
|
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-17 11:56:35 +00:00
|
|
|
},
|
2016-11-28 17:21:55 +00:00
|
|
|
"consignee": {
|
|
|
|
"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"
|
|
|
|
},
|
2016-11-28 17:21:55 +00:00
|
|
|
"enabled": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
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
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"relations": {
|
2017-01-10 11:51:21 +00:00
|
|
|
"agency": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Agency",
|
|
|
|
"foreignKey": "agencyId"
|
|
|
|
},
|
|
|
|
"country":{
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "countryId"
|
|
|
|
},
|
|
|
|
"province":{
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceId"
|
|
|
|
}
|
|
|
|
}
|
2017-01-10 13:41:56 +00:00
|
|
|
}
|
2016-11-17 11:56:35 +00:00
|
|
|
}
|