2021-04-29 12:41:10 +00:00
|
|
|
{
|
|
|
|
"name": "SupplierAddress",
|
|
|
|
"description": "Supplier addresses",
|
|
|
|
"base": "Loggable",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "supplierAddress"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2021-04-30 08:08:40 +00:00
|
|
|
"type": "number",
|
2021-04-29 12:41:10 +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"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"province": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceFk"
|
|
|
|
},
|
|
|
|
"supplier": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Supplier",
|
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
}
|
|
|
|
}
|
2023-04-12 10:33:14 +00:00
|
|
|
}
|