salix/services/loopback/common/models/ticket-state.json

40 lines
668 B
JSON
Raw Normal View History

{
"name": "TicketState",
2017-10-11 13:36:47 +00:00
"base": "VnModel",
"options": {
"mysql": {
"table": "ticketState"
}
},
"properties": {
"ticketFk": {
"id": true,
"type": "Number",
"forceId": false
},
"updated": {
"type": "Date"
},
"alertLevel": {
"type": "Number"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"worker": {
"type": "belongsTo",
"model": "Worker",
"foreignKey": "workerFk"
}
2017-10-11 13:36:47 +00:00
}
}