salix/modules/ticket/back/models/ticket-tracking.json

46 lines
974 B
JSON
Raw Permalink Normal View History

2017-12-12 11:26:18 +00:00
{
"name": "TicketTracking",
2019-03-25 08:36:24 +00:00
"base": "Loggable",
"options": {
"mysql": {
"table": "ticketTracking"
}
},
2017-12-12 11:26:18 +00:00
"properties": {
2020-11-09 13:53:26 +00:00
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2020-11-09 13:53:26 +00:00
"forceId": false
},
"created": {
"type": "date"
2020-11-09 13:53:26 +00:00
},
"ticketFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2020-11-09 13:53:26 +00:00
},
"stateFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2020-11-09 13:53:26 +00:00
},
"workerFk": {
2022-05-12 07:47:47 +00:00
"type": "number"
2020-11-09 13:53:26 +00:00
}
2017-12-12 11:26:18 +00:00
},
"relations": {
2019-03-25 08:36:24 +00:00
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
2017-12-12 11:26:18 +00:00
}
2019-03-25 08:36:24 +00:00
}