2022-07-14 11:40:50 +00:00
|
|
|
{
|
|
|
|
"name": "TicketRefund",
|
2023-12-05 06:48:56 +00:00
|
|
|
"base": "VnModel",
|
|
|
|
"mixins": {
|
|
|
|
"Loggable": true
|
|
|
|
},
|
2022-07-14 11:40:50 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "ticketRefund"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"refundTicketFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"originalTicketFk": {
|
|
|
|
"type": "number",
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"refundTicket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "refundTicketFk"
|
|
|
|
},
|
|
|
|
"originalTicket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "originalTicketFk"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|