2019-03-28 10:55:23 +00:00
|
|
|
{
|
|
|
|
"name": "Supplier",
|
2020-10-28 08:08:27 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model":"SupplierLog"
|
|
|
|
},
|
2019-03-28 10:55:23 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "supplier"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number",
|
2019-03-28 10:55:23 +00:00
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"name": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"account": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"countryFk": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"nif": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"phone": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"retAccount": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
2020-09-02 12:08:56 +00:00
|
|
|
"commission": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "boolean"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"created": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "date"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
2020-09-02 12:08:56 +00:00
|
|
|
"postcodeFk": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"isActive": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "boolean"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
2020-10-20 07:44:44 +00:00
|
|
|
"isOfficial": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "boolean"
|
2020-10-20 07:44:44 +00:00
|
|
|
},
|
2020-11-18 10:47:23 +00:00
|
|
|
"isSerious": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "boolean"
|
2020-11-18 10:47:23 +00:00
|
|
|
},
|
2022-10-26 08:03:13 +00:00
|
|
|
"isTrucker": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
2020-10-20 07:44:44 +00:00
|
|
|
"note": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2020-10-20 07:44:44 +00:00
|
|
|
},
|
2019-03-28 10:55:23 +00:00
|
|
|
"street": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"city": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"provinceFk": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"postCode": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"payMethodFk": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
|
|
|
"payDemFk": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
2020-10-20 07:44:44 +00:00
|
|
|
"payDay": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "number"
|
2020-10-20 07:44:44 +00:00
|
|
|
},
|
2019-03-28 10:55:23 +00:00
|
|
|
"nickname": {
|
2021-02-05 14:26:49 +00:00
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"workerFk": {
|
|
|
|
"type": "number"
|
2020-10-30 14:11:45 +00:00
|
|
|
},
|
|
|
|
"sageTaxTypeFk": {
|
|
|
|
"type": "number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "taxTypeSageFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sageTransactionTypeFk": {
|
|
|
|
"type": "number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "transactionTypeSageFk"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sageWithholdingFk": {
|
|
|
|
"type": "number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "withholdingSageFk"
|
|
|
|
}
|
2021-11-10 07:43:25 +00:00
|
|
|
},
|
|
|
|
"isPayMethodChecked": {
|
|
|
|
"type": "boolean"
|
2022-04-25 09:51:34 +00:00
|
|
|
},
|
|
|
|
"supplierActivityFk": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"healthRegister": {
|
|
|
|
"type": "string"
|
2022-11-18 08:21:21 +00:00
|
|
|
},
|
|
|
|
"isVies": {
|
|
|
|
"type": "boolean"
|
2021-11-10 07:43:25 +00:00
|
|
|
}
|
2019-03-28 10:55:23 +00:00
|
|
|
},
|
2020-10-20 07:44:44 +00:00
|
|
|
"relations": {
|
|
|
|
"payMethod": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "PayMethod",
|
|
|
|
"foreignKey": "payMethodFk"
|
|
|
|
},
|
|
|
|
"payDem": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "PayDem",
|
|
|
|
"foreignKey": "payDemFk"
|
|
|
|
},
|
|
|
|
"province": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Province",
|
|
|
|
"foreignKey": "provinceFk"
|
|
|
|
},
|
|
|
|
"country": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Country",
|
|
|
|
"foreignKey": "countryFk"
|
2020-10-22 11:00:11 +00:00
|
|
|
},
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
2020-10-26 07:38:43 +00:00
|
|
|
"foreignKey": "nif",
|
|
|
|
"primaryKey": "fi"
|
2021-02-05 14:26:49 +00:00
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
2020-11-18 10:47:23 +00:00
|
|
|
},
|
|
|
|
"sageTaxType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SageTaxType",
|
|
|
|
"foreignKey": "sageTaxTypeFk"
|
|
|
|
},
|
|
|
|
"sageTransactionType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SageTransactionType",
|
|
|
|
"foreignKey": "sageTransactionTypeFk"
|
|
|
|
},
|
|
|
|
"sageWithholding": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SageWithholding",
|
|
|
|
"foreignKey": "sageWithholdingFk"
|
2021-04-30 11:50:41 +00:00
|
|
|
},
|
|
|
|
"contacts": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "SupplierContact",
|
2021-05-03 12:03:41 +00:00
|
|
|
"foreignKey": "supplierFk"
|
|
|
|
},
|
2021-04-29 12:41:10 +00:00
|
|
|
"addresses": {
|
|
|
|
"type": "hasMany",
|
|
|
|
"model": "SupplierAddress",
|
2021-04-30 11:50:41 +00:00
|
|
|
"foreignKey": "supplierFk"
|
2022-04-25 09:51:34 +00:00
|
|
|
},
|
|
|
|
"supplierActivity": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "SupplierActivity",
|
|
|
|
"foreignKey": "supplierActivityFk"
|
2020-11-18 10:47:23 +00:00
|
|
|
}
|
2021-11-12 08:32:42 +00:00
|
|
|
}
|
2022-11-18 08:21:21 +00:00
|
|
|
}
|