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

43 lines
880 B
JSON

{
"name": "TicketState",
"base": "VnModel",
"options": {
"mysql": {
"table": "ticketState"
}
},
"properties": {
"ticketFk": {
"id": true,
"type": "number",
"forceId": false
},
"updated": {
"type": "date"
},
"alertLevel": {
"type": "number"
},
"code": {
"type": "string"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "workerFk"
}
}
}