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", "name": "TicketRequest",
"base": "VnModel", "base": "Loggable",
"log": {
"model": "TicketLog",
"relation": "ticket",
"changedModelValue": "description"
},
"options": { "options": {
"mysql": { "mysql": {
"table": "ticketRequest" "table": "ticketRequest"

View File

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

View File

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

View File

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