forked from juan/hedera-web
32 lines
631 B
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"
|
|
}
|
|
}
|
|
}
|