2016-11-17 11:56:35 +00:00
|
|
|
{
|
2020-01-23 13:59:37 +00:00
|
|
|
"name": "Address",
|
|
|
|
"description": "Client addresses",
|
|
|
|
"base": "Loggable",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "address"
|
|
|
|
}
|
2017-05-05 11:32:07 +00:00
|
|
|
},
|
2020-01-23 13:59:37 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2020-01-23 13:59:37 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"nickname": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"street": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"city": {
|
|
|
|
"type": "string",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"postalCode": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"mobile": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"isActive": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"longitude": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-01-23 13:59:37 +00:00
|
|
|
},
|
|
|
|
"latitude": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2020-01-23 13:59:37 +00:00
|
|
|
},
|
|
|
|
"isEqualizated": {
|
|
|
|
"type": "boolean"
|
2022-04-06 12:48:22 +00:00
|
|
|
},
|
|
|
|
"isLogifloraAllowed": {
|
|
|
|
"type": "boolean"
|
2020-01-23 13:59:37 +00:00
|
|
|
}
|
2018-01-30 13:47:47 +00:00
|
|
|
},
|
2020-01-23 13:59:37 +00:00
|
|
|
"validations": [],
|
|
|
|
"relations": {
|
|
|
|
"province": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceFk"
|
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"agencyMode": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
|
|
|
"foreignKey": "agencyModeFk"
|
|
|
|
},
|
|
|
|
"observations": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "AddressObservation",
|
|
|
|
"foreignKey": "addressFk"
|
|
|
|
},
|
|
|
|
"incoterms": {
|
|
|
|
"type": "belongsTo",
|
2020-01-24 08:47:24 +00:00
|
|
|
"model": "Incoterms",
|
2020-01-23 13:59:37 +00:00
|
|
|
"foreignKey": "incotermsFk"
|
|
|
|
},
|
|
|
|
"customsAgent": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "CustomsAgent",
|
|
|
|
"foreignKey": "customsAgentFk"
|
|
|
|
}
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2023-04-12 10:33:14 +00:00
|
|
|
}
|