50 lines
967 B
JSON
50 lines
967 B
JSON
|
{
|
||
|
"name": "TravelConfig",
|
||
|
"base": "VnModel",
|
||
|
"options": {
|
||
|
"mysql": {
|
||
|
"table": "travelConfig"
|
||
|
}
|
||
|
},
|
||
|
"properties": {
|
||
|
"id": {
|
||
|
"type": "number",
|
||
|
"id": true
|
||
|
},
|
||
|
"warehouseInFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"warehouseOutFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"agencyFk": {
|
||
|
"type": "number"
|
||
|
},
|
||
|
"companyFk": {
|
||
|
"type": "number"
|
||
|
}
|
||
|
},
|
||
|
"relations": {
|
||
|
"warehouseIn": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Warehouse",
|
||
|
"foreignKey": "warehouseInFk"
|
||
|
},
|
||
|
"warehouseOut": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Warehouse",
|
||
|
"foreignKey": "warehouseOutFk"
|
||
|
},
|
||
|
"agency": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "AgencyMode",
|
||
|
"foreignKey": "agencyFk"
|
||
|
},
|
||
|
"company": {
|
||
|
"type": "belongsTo",
|
||
|
"model": "Company",
|
||
|
"foreignKey": "companyFk"
|
||
|
}
|
||
|
}
|
||
|
}
|