salix/modules/supplier/back/models/supplier.json

182 lines
3.7 KiB
JSON
Raw Normal View History

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": {
"type": "number",
2019-03-28 10:55:23 +00:00
"id": true,
"description": "Identifier"
},
"name": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"account": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"countryFk": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
"nif": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"phone": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
"retAccount": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
2020-09-02 12:08:56 +00:00
"commission": {
"type": "boolean"
2019-03-28 10:55:23 +00:00
},
"created": {
"type": "date"
2019-03-28 10:55:23 +00:00
},
2020-09-02 12:08:56 +00:00
"postcodeFk": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
"isActive": {
"type": "boolean"
2019-03-28 10:55:23 +00:00
},
2020-10-20 07:44:44 +00:00
"isOfficial": {
"type": "boolean"
2020-10-20 07:44:44 +00:00
},
2020-11-18 10:47:23 +00:00
"isSerious": {
"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": {
"type": "string"
2020-10-20 07:44:44 +00:00
},
2019-03-28 10:55:23 +00:00
"street": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"city": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"provinceFk": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
"postCode": {
"type": "string"
2019-03-28 10:55:23 +00:00
},
"payMethodFk": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
"payDemFk": {
"type": "number"
2019-03-28 10:55:23 +00:00
},
2020-10-20 07:44:44 +00:00
"payDay": {
"type": "number"
2020-10-20 07:44:44 +00:00
},
2019-03-28 10:55:23 +00:00
"nickname": {
"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"
}
},
"isPayMethodChecked": {
"type": "boolean"
},
"supplierActivityFk": {
"type": "string"
},
"healthRegister": {
"type": "string"
2022-11-18 08:21:21 +00:00
},
"isVies": {
"type": "boolean"
}
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",
"foreignKey": "nif",
"primaryKey": "fi"
},
"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"
},
"contacts": {
"type": "hasMany",
"model": "SupplierContact",
"foreignKey": "supplierFk"
},
"addresses": {
"type": "hasMany",
"model": "SupplierAddress",
"foreignKey": "supplierFk"
},
"supplierActivity": {
"type": "belongsTo",
"model": "SupplierActivity",
"foreignKey": "supplierActivityFk"
2020-11-18 10:47:23 +00:00
}
}
2022-11-18 08:21:21 +00:00
}