log added to ticket module models

This commit is contained in:
Gerard 2019-03-25 09:36:24 +01:00
parent c5e953f922
commit 649b7f0e21
4 changed files with 51 additions and 26 deletions

View File

@ -1,6 +1,11 @@
{
"name": "TicketRequest",
"base": "VnModel",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "description"
},
"options": {
"mysql": {
"table": "ticketRequest"

View File

@ -1,6 +1,11 @@
{
"name": "TicketService",
"base": "VnModel",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "description"
},
"options": {
"mysql": {
"table": "ticketService"
@ -38,6 +43,11 @@
"type": "belongsTo",
"model": "TaxClass",
"foreignKey": "taxClassFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
}
}
}

View File

@ -1,6 +1,11 @@
{
"name": "TicketTracking",
"base": "VnModel",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "stateFk"
},
"options": {
"mysql": {
"table": "ticketTracking"

View File

@ -1,6 +1,11 @@
{
"name": "TicketWeekly",
"base": "VnModel",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "ticketFk"
},
"options": {
"mysql": {
"table": "ticketWeekly"