2016-11-17 11:56:35 +00:00
|
|
|
{
|
|
|
|
"name": "Address",
|
2018-01-29 18:57:00 +00:00
|
|
|
"description": "Client addresses",
|
2018-10-22 12:35:21 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
2019-04-04 10:38:54 +00:00
|
|
|
"showField": "nickname"
|
2018-10-22 12:35:21 +00:00
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "address"
|
|
|
|
}
|
|
|
|
},
|
2016-11-17 11:56:35 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"nickname": {
|
2016-11-17 11:56:35 +00:00
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-17 11:56:35 +00:00
|
|
|
},
|
2017-04-28 13:04:29 +00:00
|
|
|
"street": {
|
2016-11-28 17:21:55 +00:00
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-28 17:21:55 +00:00
|
|
|
},
|
2016-11-17 11:56:35 +00:00
|
|
|
"city": {
|
|
|
|
"type": "string",
|
2017-01-12 10:02:22 +00:00
|
|
|
"required": true
|
2016-11-17 11:56:35 +00:00
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"postalCode": {
|
2016-11-17 11:56:35 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"phone": {
|
|
|
|
"type": "string"
|
2016-11-28 17:21:55 +00:00
|
|
|
},
|
|
|
|
"mobile": {
|
|
|
|
"type": "string"
|
2017-01-10 13:41:56 +00:00
|
|
|
},
|
2018-01-29 11:37:54 +00:00
|
|
|
"isActive": {
|
2017-04-28 13:04:29 +00:00
|
|
|
"type": "boolean"
|
|
|
|
},
|
2017-05-09 12:04:44 +00:00
|
|
|
"longitude": {
|
|
|
|
"type": "Number"
|
|
|
|
},
|
|
|
|
"latitude": {
|
2017-05-05 11:32:07 +00:00
|
|
|
"type": "Number"
|
2017-08-22 12:27:09 +00:00
|
|
|
},
|
|
|
|
"isEqualizated": {
|
|
|
|
"type": "boolean"
|
2017-01-31 13:13:06 +00:00
|
|
|
}
|
|
|
|
},
|
2017-03-14 12:08:55 +00:00
|
|
|
"validations": [],
|
2017-01-31 13:13:06 +00:00
|
|
|
"relations": {
|
2017-05-12 11:36:12 +00:00
|
|
|
"province": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceFk"
|
2017-02-21 10:36:43 +00:00
|
|
|
},
|
2017-05-12 11:36:12 +00:00
|
|
|
"client": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
2017-02-21 10:36:43 +00:00
|
|
|
"model": "Client",
|
2017-05-12 09:14:55 +00:00
|
|
|
"foreignKey": "clientFk"
|
2017-05-05 11:32:07 +00:00
|
|
|
},
|
2018-02-28 11:07:56 +00:00
|
|
|
"agencyMode": {
|
2017-05-12 09:14:55 +00:00
|
|
|
"type": "belongsTo",
|
2017-11-15 11:11:35 +00:00
|
|
|
"model": "AgencyMode",
|
2018-02-28 11:07:56 +00:00
|
|
|
"foreignKey": "agencyModeFk"
|
2018-01-30 13:47:47 +00:00
|
|
|
},
|
|
|
|
"observations": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "AddressObservation",
|
|
|
|
"foreignKey": "addressFk"
|
2017-01-10 11:51:21 +00:00
|
|
|
}
|
2017-10-11 13:36:47 +00:00
|
|
|
}
|
2016-11-17 11:56:35 +00:00
|
|
|
}
|