salix/modules/client/back/models/address.json

88 lines
2.0 KiB
JSON
Raw Normal View History

{
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"
}
},
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",
"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
}