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,
|
2021-06-29 16:01:33 +00:00
|
|
|
"type": "number",
|
2019-02-01 16:11:14 +00:00
|
|
|
"forceId": false
|
|
|
|
},
|
|
|
|
"updated": {
|
2021-06-29 16:01:33 +00:00
|
|
|
"type": "date"
|
2019-02-01 16:11:14 +00:00
|
|
|
},
|
|
|
|
"alertLevel": {
|
2021-06-29 16:01:33 +00:00
|
|
|
"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
|
|
|
}
|
|
|
|
}
|