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,38 +1,43 @@
{
"name": "TicketTracking",
"base": "VnModel",
"base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "stateFk"
},
"options": {
"mysql": {
"table": "ticketTracking"
"table": "ticketTracking"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
"id": true,
"type": "Number",
"forceId": false
},
"created": {
"type": "Date",
"required": false
"type": "Date",
"required": false
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
}
}
}

View File

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