32 lines
624 B
JSON
32 lines
624 B
JSON
{
|
|
"name": "OrderTicket",
|
|
"base": "VnModel",
|
|
"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"
|
|
}
|
|
}
|
|
}
|