salix/services/client/common/models/Address.json

53 lines
951 B
JSON
Raw Normal View History

{
"name": "Address",
"base": "PersistedModel",
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"street": {
"type": "string",
"required": "true"
},
2016-11-28 17:21:55 +00:00
"consignee": {
"type": "string",
"required": "true"
},
"city": {
"type": "string",
"required": "true"
},
"postcode": {
"type": "string"
},
2016-11-28 17:21:55 +00:00
"enabled": {
"type": "boolean"
},
"phone": {
"type": "string"
2016-11-28 17:21:55 +00:00
},
"mobile": {
"type": "string"
}
2017-01-10 11:51:21 +00:00
},
"relations": {
"agency": {
"type": "belongsTo",
"model": "Agency",
"foreignKey": "agencyId"
},
"country":{
"type": "belongsTo",
"model": "Country",
"foreignKey": "countryId"
},
"province":{
"type": "belongsTo",
"model": "Province",
"foreignKey": "provinceId"
}
}
}