2017-12-12 11:26:18 +00:00
|
|
|
{
|
2018-01-29 11:37:54 +00:00
|
|
|
"name": "TicketTracking",
|
2017-12-12 11:26:18 +00:00
|
|
|
"base": "VnModel",
|
2018-01-29 11:37:54 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-03-27 12:24:47 +00:00
|
|
|
"table": "ticketTracking",
|
|
|
|
"database": "vn"
|
2018-01-29 11:37:54 +00:00
|
|
|
}
|
|
|
|
},
|
2017-12-12 11:26:18 +00:00
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "Date",
|
|
|
|
"required": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"state": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "State",
|
|
|
|
"foreignKey": "stateFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
2018-03-12 12:55:18 +00:00
|
|
|
"model": "Worker",
|
2017-12-12 11:26:18 +00:00
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|