44 lines
814 B
JSON
44 lines
814 B
JSON
|
{
|
||
|
"name": "CollectionWagonTicket",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "collectionWagonTicket"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"ticketFk": {
|
||
|
"id": true,
|
||
|
"type": "number"
|
||
|
},
|
||
|
"wagonFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
},
|
||
|
"trayFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
},
|
||
|
"side": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"ticket": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Ticket",
|
||
|
"foreignKey": "ticketFk"
|
||
|
},
|
||
|
"wagon": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Wagon",
|
||
|
"foreignKey": "wagonFk"
|
||
|
},
|
||
|
"tray": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "WagonTypeTray",
|
||
|
"foreignKey": "trayFk"
|
||
|
}
|
||
|
}
|
||
|
}
|