35 lines
720 B
JSON
35 lines
720 B
JSON
{
|
|
"name": "TicketLastState",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketLastState"
|
|
}
|
|
},
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"ticketFk": {
|
|
"id": 1,
|
|
"type": "Number"
|
|
},
|
|
"ticketTrackingFk": {
|
|
"id": 2,
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
},
|
|
"ticketTracking": {
|
|
"type": "belongsTo",
|
|
"model": "TicketTracking",
|
|
"foreignKey": "ticketTrackingFk"
|
|
}
|
|
}
|
|
}
|