2016-11-17 11:56:35 +00:00
|
|
|
{
|
2020-01-23 13:59:37 +00:00
|
|
|
"name": "Address",
|
|
|
|
"description": "Client addresses",
|
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
|
|
|
"showField": "nickname"
|
2017-02-21 10:36:43 +00:00
|
|
|
},
|
2020-01-23 13:59:37 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "address"
|
|
|
|
}
|
2017-05-05 11:32:07 +00:00
|
|
|
},
|
2020-01-23 13:59:37 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"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": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"latitude": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"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
|
|
|
}
|
2020-01-23 13:59:37 +00:00
|
|
|
}
|