hedera-front/back/common/models/order-ticket.json

32 lines
631 B
JSON

{
"name": "OrderTicket",
"base": "PersistedModel",
"options": {
"mysql": {
"table": "orderTicket"
}
},
"properties": {
"orderFk": {
"id": true,
"type": "Number"
},
"ticketFk": {
"id": true,
"type": "Number"
}
},
"relations": {
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"order": {
"type": "belongsTo",
"model": "Order",
"foreignKey": "orderFk"
}
}
}