90 lines
2.0 KiB
JSON
90 lines
2.0 KiB
JSON
{
|
|
"name": "Address",
|
|
"description": "Client addresses",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "address"
|
|
}
|
|
},
|
|
"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"
|
|
},
|
|
"isLogifloraAllowed": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"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",
|
|
"model": "Incoterms",
|
|
"foreignKey": "incotermsFk"
|
|
},
|
|
"customsAgent": {
|
|
"type": "belongsTo",
|
|
"model": "CustomsAgent",
|
|
"foreignKey": "customsAgentFk"
|
|
}
|
|
}
|
|
}
|