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

40 lines
853 B
JSON
Raw Permalink Normal View History

{
"name": "TicketRefund",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"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"
}
}
}