From c90b829e5c0e5058d01529f37d570c5722ef671a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 5 Dec 2023 14:02:43 +0100 Subject: [PATCH] refs #6533 perf: define log property for each config.local.yml --- modules/claim/back/models/claim-beginning.json | 4 ++++ modules/claim/back/models/claim-development.json | 4 ++++ modules/claim/back/models/claim-dms.json | 5 +++++ modules/claim/back/models/claim-end.json | 4 ++++ modules/claim/back/models/claim-observation.json | 4 ++++ modules/claim/back/models/claim.json | 5 +++++ modules/client/back/models/address.json | 4 ++++ modules/client/back/models/client-contact.json | 6 ++++++ modules/client/back/models/client-dms.json | 4 ++++ modules/client/back/models/client-observation.json | 4 ++++ modules/client/back/models/client-sample.json | 4 ++++ modules/client/back/models/client.json | 4 ++++ modules/client/back/models/greuge.json | 4 ++++ modules/client/back/models/recovery.json | 4 ++++ modules/entry/back/models/buy.json | 4 ++++ modules/entry/back/models/entry-observation.json | 4 ++++ modules/entry/back/models/entry.json | 4 ++++ modules/invoiceIn/back/models/invoice-in-due-day.json | 4 ++++ modules/invoiceIn/back/models/invoice-in-tax.json | 4 ++++ modules/invoiceIn/back/models/invoice-in.json | 4 ++++ modules/item/back/models/item-barcode.json | 4 ++++ modules/item/back/models/item-botanical.json | 4 ++++ modules/item/back/models/item-tag.json | 4 ++++ modules/item/back/models/item-tax-country.json | 4 ++++ modules/item/back/models/item.json | 4 ++++ 25 files changed, 104 insertions(+) diff --git a/modules/claim/back/models/claim-beginning.json b/modules/claim/back/models/claim-beginning.json index d355881e8..51294fb51 100644 --- a/modules/claim/back/models/claim-beginning.json +++ b/modules/claim/back/models/claim-beginning.json @@ -6,6 +6,10 @@ "table": "claimBeginning" } }, + "log": { + "model":"ClaimLog", + "relation": "claim" + }, "properties": { "id": { "type": "number", diff --git a/modules/claim/back/models/claim-development.json b/modules/claim/back/models/claim-development.json index b0f352f50..d9dae8ce7 100644 --- a/modules/claim/back/models/claim-development.json +++ b/modules/claim/back/models/claim-development.json @@ -6,6 +6,10 @@ "table": "claimDevelopment" } }, + "log": { + "model":"ClaimLog", + "relation": "claim" + }, "properties": { "id": { "type": "number", diff --git a/modules/claim/back/models/claim-dms.json b/modules/claim/back/models/claim-dms.json index 26c90fd69..00a29151b 100644 --- a/modules/claim/back/models/claim-dms.json +++ b/modules/claim/back/models/claim-dms.json @@ -11,6 +11,11 @@ "image/jpeg", "image/jpg" ], + "log": { + "model":"ClaimLog", + "relation": "claim", + "showField": "dmsFk" + }, "properties": { "dmsFk": { "type": "number", diff --git a/modules/claim/back/models/claim-end.json b/modules/claim/back/models/claim-end.json index 9f12ff93a..c2262c16f 100644 --- a/modules/claim/back/models/claim-end.json +++ b/modules/claim/back/models/claim-end.json @@ -1,6 +1,10 @@ { "name": "ClaimEnd", "base": "Loggable", + "log": { + "model":"ClaimLog", + "showField": "id" + }, "options": { "mysql": { "table": "claimEnd" diff --git a/modules/claim/back/models/claim-observation.json b/modules/claim/back/models/claim-observation.json index 2d418b76e..960dbec11 100644 --- a/modules/claim/back/models/claim-observation.json +++ b/modules/claim/back/models/claim-observation.json @@ -6,6 +6,10 @@ "table": "claimObservation" } }, + "log": { + "model":"ClaimLog", + "relation": "claim" + }, "properties": { "id": { "type": "number", diff --git a/modules/claim/back/models/claim.json b/modules/claim/back/models/claim.json index a7db1f3e1..68d9e0210 100644 --- a/modules/claim/back/models/claim.json +++ b/modules/claim/back/models/claim.json @@ -1,11 +1,16 @@ { "name": "Claim", "base": "Loggable", + "options": { "mysql": { "table": "claim" } }, + "log": { + "model":"ClaimLog", + "showField": "id" + }, "properties": { "id": { "type": "number", diff --git a/modules/client/back/models/address.json b/modules/client/back/models/address.json index 5f962677d..21c0124ae 100644 --- a/modules/client/back/models/address.json +++ b/modules/client/back/models/address.json @@ -7,6 +7,10 @@ "table": "address" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "id": { "type": "number", diff --git a/modules/client/back/models/client-contact.json b/modules/client/back/models/client-contact.json index 3f71ab79e..0931aae2c 100644 --- a/modules/client/back/models/client-contact.json +++ b/modules/client/back/models/client-contact.json @@ -7,6 +7,12 @@ "table": "clientContact" } }, + "log": { + "model":"ClientLog", + "relation": "client", + "showField": "clientFk" + + }, "validateUpsert": true, "properties": { "id": { diff --git a/modules/client/back/models/client-dms.json b/modules/client/back/models/client-dms.json index 14b19498e..280aa64ce 100644 --- a/modules/client/back/models/client-dms.json +++ b/modules/client/back/models/client-dms.json @@ -6,6 +6,10 @@ "table": "clientDms" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "dmsFk": { "type": "number", diff --git a/modules/client/back/models/client-observation.json b/modules/client/back/models/client-observation.json index 95d00d374..eb159bedc 100644 --- a/modules/client/back/models/client-observation.json +++ b/modules/client/back/models/client-observation.json @@ -7,6 +7,10 @@ "table": "clientObservation" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "id": { "type": "number", diff --git a/modules/client/back/models/client-sample.json b/modules/client/back/models/client-sample.json index a32f308ab..5e50ed98d 100644 --- a/modules/client/back/models/client-sample.json +++ b/modules/client/back/models/client-sample.json @@ -6,6 +6,10 @@ "table": "clientSample" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "id": { "id": true, diff --git a/modules/client/back/models/client.json b/modules/client/back/models/client.json index f32915bb5..d828b28e7 100644 --- a/modules/client/back/models/client.json +++ b/modules/client/back/models/client.json @@ -6,6 +6,10 @@ "table": "client" } }, + "log": { + "model":"ClientLog", + "showField": "id" + }, "properties": { "id": { "type": "number", diff --git a/modules/client/back/models/greuge.json b/modules/client/back/models/greuge.json index 884cbd34e..39e796edd 100644 --- a/modules/client/back/models/greuge.json +++ b/modules/client/back/models/greuge.json @@ -6,6 +6,10 @@ "table": "greuge" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "id": { "id": true, diff --git a/modules/client/back/models/recovery.json b/modules/client/back/models/recovery.json index 5ea89197d..3a2a81356 100644 --- a/modules/client/back/models/recovery.json +++ b/modules/client/back/models/recovery.json @@ -6,6 +6,10 @@ "table": "recovery" } }, + "log": { + "model":"ClientLog", + "relation": "client" + }, "properties": { "id": { "id": true, diff --git a/modules/entry/back/models/buy.json b/modules/entry/back/models/buy.json index 30379eaf6..b3815e45e 100644 --- a/modules/entry/back/models/buy.json +++ b/modules/entry/back/models/buy.json @@ -6,6 +6,10 @@ "table": "buy" } }, + "log": { + "model":"EntryLog", + "relation": "entry" + }, "properties": { "id": { "type": "number", diff --git a/modules/entry/back/models/entry-observation.json b/modules/entry/back/models/entry-observation.json index cdf0c5e6e..850c6cc94 100644 --- a/modules/entry/back/models/entry-observation.json +++ b/modules/entry/back/models/entry-observation.json @@ -6,6 +6,10 @@ "table": "entryObservation" } }, + "log": { + "model":"EntryLog", + "relation": "entry" + }, "properties": { "id": { "id": true, diff --git a/modules/entry/back/models/entry.json b/modules/entry/back/models/entry.json index a7508b4e8..1a839a68d 100644 --- a/modules/entry/back/models/entry.json +++ b/modules/entry/back/models/entry.json @@ -6,6 +6,10 @@ "table": "entry" } }, + "log": { + "model":"EntryLog", + "showField": "id" + }, "properties": { "id": { "type": "number", diff --git a/modules/invoiceIn/back/models/invoice-in-due-day.json b/modules/invoiceIn/back/models/invoice-in-due-day.json index d2cffc81b..7ff9dac94 100644 --- a/modules/invoiceIn/back/models/invoice-in-due-day.json +++ b/modules/invoiceIn/back/models/invoice-in-due-day.json @@ -6,6 +6,10 @@ "table": "invoiceInDueDay" } }, + "log": { + "model":"InvoiceInLog", + "showField": "invoiceInFk" + }, "properties": { "id": { "id": true, diff --git a/modules/invoiceIn/back/models/invoice-in-tax.json b/modules/invoiceIn/back/models/invoice-in-tax.json index 5bfbbe2a8..72d7b0176 100644 --- a/modules/invoiceIn/back/models/invoice-in-tax.json +++ b/modules/invoiceIn/back/models/invoice-in-tax.json @@ -6,6 +6,10 @@ "table": "invoiceInTax" } }, + "log": { + "model":"InvoiceInLog", + "relation": "invoiceIn" + }, "properties": { "id": { "id": true, diff --git a/modules/invoiceIn/back/models/invoice-in.json b/modules/invoiceIn/back/models/invoice-in.json index 5be55c851..b9a2c780a 100644 --- a/modules/invoiceIn/back/models/invoice-in.json +++ b/modules/invoiceIn/back/models/invoice-in.json @@ -6,6 +6,10 @@ "table": "invoiceIn" } }, + "log": { + "model":"InvoiceInLog", + "showField": "id" + }, "properties": { "id": { "id": true, diff --git a/modules/item/back/models/item-barcode.json b/modules/item/back/models/item-barcode.json index 12068a65f..3bbb8cf99 100644 --- a/modules/item/back/models/item-barcode.json +++ b/modules/item/back/models/item-barcode.json @@ -6,6 +6,10 @@ "table": "itemBarcode" } }, + "log": { + "model":"ItemLog", + "relation": "item" +}, "properties": { "id": { "type": "number", diff --git a/modules/item/back/models/item-botanical.json b/modules/item/back/models/item-botanical.json index 8a8bba870..dda332e15 100644 --- a/modules/item/back/models/item-botanical.json +++ b/modules/item/back/models/item-botanical.json @@ -6,6 +6,10 @@ "table": "itemBotanical" } }, + "log": { + "model":"ItemLog", + "relation": "item" + }, "properties": { "itemFk": { "type": "number", diff --git a/modules/item/back/models/item-tag.json b/modules/item/back/models/item-tag.json index 0742f8d3f..9b1012bc8 100644 --- a/modules/item/back/models/item-tag.json +++ b/modules/item/back/models/item-tag.json @@ -6,6 +6,10 @@ "table": "itemTag" } }, + "log": { + "model":"ItemLog", + "showField":"tagFk" + }, "properties": { "id": { "type": "number", diff --git a/modules/item/back/models/item-tax-country.json b/modules/item/back/models/item-tax-country.json index 002be97d8..ddd344375 100644 --- a/modules/item/back/models/item-tax-country.json +++ b/modules/item/back/models/item-tax-country.json @@ -6,6 +6,10 @@ "table": "itemTaxCountry" } }, + "log": { + "model":"ItemLog", + "showField": "taxClassFk" + }, "properties": { "id": { "type": "number", diff --git a/modules/item/back/models/item.json b/modules/item/back/models/item.json index 097fe7708..abc7cfd02 100644 --- a/modules/item/back/models/item.json +++ b/modules/item/back/models/item.json @@ -6,6 +6,10 @@ "table": "item" } }, + "log": { + "model":"ItemLog", + "showField": "id" + }, "properties": { "id": { "type": "number",