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

90 lines
2.0 KiB
JSON
Raw Permalink Normal View History

{
2020-01-23 13:59:37 +00:00
"name": "Address",
"description": "Client addresses",
"base": "VnModel",
"mixins": {
"Loggable": true
},
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": {
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"
},
"isLogifloraAllowed": {
"type": "boolean"
2020-01-23 13:59:37 +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",
"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
}
}