41 lines
893 B
JSON
41 lines
893 B
JSON
|
{
|
||
|
"name": "TicketRefund",
|
||
|
"base": "Loggable",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "ticketRefund"
|
||
|
}
|
||
|
},
|
||
|
"log": {
|
||
|
"model": "TicketLog",
|
||
|
"relation": "originalTicket"
|
||
|
},
|
||
|
"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"
|
||
|
}
|
||
|
}
|
||
|
}
|