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

46 lines
907 B
JSON

{
"name": "TicketTracking",
"base": "Loggable",
"options": {
"mysql": {
"table": "ticketTracking"
}
},
"properties": {
"id": {
"id": true,
"type": "number",
"forceId": false
},
"created": {
"type": "date"
},
"ticketFk": {
"type": "number"
},
"stateFk": {
"type": "number"
},
"userFk": {
"type": "number"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"state": {
"type": "belongsTo",
"model": "State",
"foreignKey": "stateFk"
},
"user": {
"type": "belongsTo",
"model": "VnUser",
"foreignKey": "userFk"
}
}
}