feat(mylogger): refs #6533 #6533 export logs.local.yml into each model.json

This commit is contained in:
Javier Segarra 2024-04-25 07:33:46 +02:00
parent 6ee28d56b2
commit dee1510bb6
16 changed files with 732 additions and 431 deletions

View File

@ -7,6 +7,24 @@
"table": "account.role"
}
},
"log": {
"schema": "account",
"logTable": "roleLog",
"mainTable": "role",
"tables": [
{
"name": "role",
"exclude": [
"modified"
]
},
{
"name": "roleInherit",
"relation": "role",
"showRelation": "inheritsFrom"
}
]
},
"mixins": {
"Loggable": true
}

View File

@ -10,6 +10,34 @@
"mixins": {
"Loggable": true
},
"log": {
"schema": "account",
"logTable": "userLog",
"mainTable": "user",
"tables": [
{
"name": "user",
"modelName": "VnUser",
"exclude": [
"bcryptPassword",
"password",
"verificationToken"
]
},
{
"name": "account",
"relation": "id"
},
{
"name": "mailAliasAccount",
"relation": "account"
},
{
"name": "mailForward",
"relation": "account"
}
]
},
"resetPasswordTokenTTL": "604800",
"properties": {
"id": {

View File

@ -5,8 +5,18 @@
"Loggable": true
},
"log": {
"model":"ClaimLog",
"showField": "id"
"logTable": "claimLog",
"mainTable": "claim",
"tables": [
{
"name": "claimDms",
"idName": "dmsFk"
},
"claimDevelopment",
"claimBeginning",
"claimEnd",
"claimObservation"
]
},
"options": {
"mysql": {

View File

@ -10,8 +10,42 @@
}
},
"log": {
"model":"ClientLog",
"showField": "id"
"logTable": "clientLog",
"mainTable": "client",
"tables": [
"address",
{
"name": "client",
"types": {
"payMethodFk": "integer"
},
"exclude": [
"defaultAddressFk"
]
},
{
"name": "clientContact",
"relation": "clientFk"
},
"clientDms",
"clientObservation",
{
"name": "clientSample",
"relation": "clientFk"
},
{
"name": "greuge",
"relation": "clientFk"
},
{
"name": "recovery",
"relation": "clientFk"
},
{
"name": "clientUnpaid",
"relation": "clientFk"
}
]
},
"properties": {
"id": {
@ -155,7 +189,6 @@
"recommendedCredit": {
"type": "number"
}
},
"relations": {
"account": {

View File

@ -10,8 +10,12 @@
}
},
"log": {
"model":"EntryLog",
"showField": "id"
"logTable": "entryLog",
"mainTable": "entry",
"tables": [
"buy",
"entryObservation"
]
},
"properties": {
"id": {

View File

@ -10,8 +10,12 @@
}
},
"log": {
"model":"InvoiceInLog",
"showField": "id"
"logTable": "invoiceInLog",
"mainTable": "invoiceIn",
"tables": [
"invoiceInDueDay",
"invoiceInTax"
]
},
"properties": {
"id": {
@ -115,5 +119,3 @@
}
}
}

View File

@ -10,8 +10,41 @@
}
},
"log": {
"model":"ItemLog",
"showField": "id"
"logTable": "itemLog",
"mainTable": "item",
"tables": [
"itemBarcode",
"itemBotanical",
{
"name": "itemTag",
"showRelation": "tagFk"
},
{
"name": "itemTaxCountry",
"types": {
"taxClassFk": "integer"
}
},
{
"name": "item",
"exclude": [
"lastUsed",
"supplyResponseFk",
"tag5",
"tag6",
"tag7",
"tag8",
"tag9",
"tag10",
"value5",
"value6",
"value7",
"value8",
"value9",
"value10"
]
}
]
},
"properties": {
"id": {

View File

@ -9,6 +9,16 @@
"table": "route"
}
},
"log": {
"logTable": "routeLog",
"mainTable": "route",
"tables": [
{
"name": "routesMonitor",
"relation": "routeFk"
}
]
},
"properties": {
"id": {
"type": "number",

View File

@ -6,6 +6,13 @@
"table": "parking"
}
},
"log": {
"logTable": "parkingLog",
"mainTable": "parking",
"tables": [
"saleGroup"
]
},
"properties": {
"id": {
"type": "number",

View File

@ -9,6 +9,10 @@
"table": "shelving"
}
},
"log": {
"logTable": "shelvingLog",
"mainTable": "shelving"
},
"properties": {
"id": {
"type": "number",

View File

@ -9,6 +9,31 @@
"table": "supplier"
}
},
"log": {
"logTable": "supplierLog",
"mainTable": "supplier",
"tables": [
{
"name": "supplier",
"types": {
"payMethodFk": "integer"
}
},
{
"name": "supplierAccount",
"showField": "iban"
},
{
"name": "supplierAddress",
"relation": "supplierFk"
},
"supplierContact",
{
"name": "supplierDms",
"idName": "supplierFk"
}
]
},
"properties": {
"id": {
"type": "number",

View File

@ -9,6 +9,61 @@
"table": "ticket"
}
},
"log": {
"logTable": "ticketLog",
"mainTable": "ticket",
"tables": [
"expedition",
{
"name": "sale",
"showField": "concept",
"types": {
"discount": "integer"
},
"exclude": [
"priceFixed"
]
},
{
"name": "ticket",
"types": {
"priority": "integer"
},
"exclude": [
"totalWithVat",
"totalWithoutVat"
]
},
{
"name": "ticketDms",
"idName": "dmsFk"
},
{
"name": "ticketObservation",
"types": {
"observationTypeFk": "integer"
}
},
"ticketPackaging",
{
"name": "ticketRefund",
"relation": "originalTicketFk"
},
"ticketRequest",
"ticketService",
{
"name": "ticketTracking",
"showRelation": "stateFk",
"types": {
"stateFk": "integer"
},
"exclude": [
"failFk"
]
},
"ticketWeekly"
]
},
"properties": {
"id": {
"id": true,

View File

@ -9,6 +9,23 @@
"table": "travel"
}
},
"log": {
"logTable": "travelLog",
"mainTable": "travel",
"tables": [
{
"name": "travel",
"showField": "ref",
"types": {
"totalEntries": "integer"
}
},
{
"name": "travelThermograph",
"showField": "thermographFk"
}
]
},
"properties": {
"id": {
"type": "number",

View File

@ -5,7 +5,11 @@
"Loggable": true
},
"log": {
"model": "DeviceProductionLog"
"logTable": "deviceProductionLog",
"mainTable": "deviceProduction",
"tables": [
"deviceProductionUser"
]
},
"options": {
"mysql": {

View File

@ -10,6 +10,30 @@
"table": "worker"
}
},
"log": {
"logTable": "workerLog",
"mainTable": "worker",
"tables": [
{
"name": "worker",
"showField": "firstName",
"exclude": [
"balance"
]
},
{
"name": "workerDocument",
"showRelation": "document",
"modelName": "WorkerDms",
"relation": "worker"
},
"business",
{
"name": "workerTimeControl",
"relation": "userFk"
}
]
},
"properties": {
"id": {
"type": "number",
@ -99,32 +123,45 @@
{
"relation": "user",
"scope": {
"fields": ["email", "name", "nickname", "roleFk", "emailVerified"],
"fields": [
"email",
"name",
"nickname",
"roleFk",
"emailVerified"
],
"include": [
{
"relation": "role",
"scope": {
"fields": ["name"]
"fields": [
"name"
]
}
},
{
"relation": "emailUser",
"scope": {
"fields": ["email"]
"fields": [
"email"
]
}
}
]
}
}, {
},
{
"relation": "department",
"scope": {
"include": {
"relation": "department"
}
}
}, {
},
{
"relation": "boss"
}, {
},
{
"relation": "client",
"scope": {
"fields": [
@ -169,7 +206,8 @@
"recommendedCredit"
]
}
}, {
},
{
"relation": "sip"
}
]

View File

@ -9,6 +9,19 @@
"table": "zone"
}
},
"log": {
"logTable": "zoneLog",
"mainTable": "zone",
"tables": [
"zoneEvent",
"zoneExclusion",
"zoneWarehouse",
{
"name": "zoneIncluded",
"idName": "zoneFk"
}
]
},
"properties": {
"id": {
"id": true,