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

43 lines
882 B
JSON
Raw Permalink Normal View History

{
2019-02-01 16:11:14 +00:00
"name": "TicketState",
"base": "VnModel",
"options": {
"mysql": {
"table": "ticketState"
}
},
2019-02-01 16:11:14 +00:00
"properties": {
"ticketFk": {
"id": true,
"type": "number",
2019-02-01 16:11:14 +00:00
"forceId": false
},
"updated": {
"type": "date"
2019-02-01 16:11:14 +00:00
},
"alertLevel": {
"type": "number"
2020-06-02 07:34:42 +00:00
},
"code": {
"type": "string"
2019-02-01 16:11:14 +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"
}
}
}