2017-06-13 06:44:40 +00:00
|
|
|
{
|
2019-02-01 16:11:14 +00:00
|
|
|
"name": "TicketState",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "ticketState"
|
|
|
|
}
|
2017-06-13 06:44:40 +00:00
|
|
|
},
|
2019-02-01 16:11:14 +00:00
|
|
|
"properties": {
|
|
|
|
"ticketFk": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"updated": {
|
|
|
|
"type": "Date"
|
|
|
|
},
|
|
|
|
"alertLevel": {
|
|
|
|
"type": "Number"
|
2020-06-02 07:34:42 +00:00
|
|
|
},
|
|
|
|
"code": {
|
|
|
|
"type": "string"
|
2019-02-01 16:11:14 +00:00
|
|
|
}
|
2018-05-17 11:29:18 +00:00
|
|
|
},
|
2019-02-01 16:11:14 +00:00
|
|
|
"relations": {
|
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
|
|
|
"state": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "State",
|
|
|
|
"foreignKey": "stateFk"
|
|
|
|
},
|
|
|
|
"worker": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Worker",
|
|
|
|
"foreignKey": "workerFk"
|
|
|
|
}
|
2017-06-13 06:44:40 +00:00
|
|
|
}
|
|
|
|
}
|