35 lines
636 B
JSON
35 lines
636 B
JSON
|
{
|
||
|
"name": "CollectionWagon",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "collectionWagon"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"collectionFk": {
|
||
|
"id": true,
|
||
|
"type": "number"
|
||
|
},
|
||
|
"wagonFk": {
|
||
|
"type": "number",
|
||
|
"required": true
|
||
|
},
|
||
|
"position": {
|
||
|
"type": "number"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"collection": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Collection",
|
||
|
"foreignKey": "collectionFk"
|
||
|
},
|
||
|
"wagon": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Wagon",
|
||
|
"foreignKey": "wagonFk"
|
||
|
}
|
||
|
}
|
||
|
}
|