74 lines
1.5 KiB
JSON
74 lines
1.5 KiB
JSON
{
|
|
"name": "Travel",
|
|
"base": "VnModel",
|
|
"mixins": {
|
|
"Loggable": true
|
|
},
|
|
"options": {
|
|
"mysql": {
|
|
"table": "travel"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"type": "number",
|
|
"id": true,
|
|
"description": "Identifier"
|
|
},
|
|
"shipped": {
|
|
"type": "date"
|
|
},
|
|
"landed": {
|
|
"type": "date"
|
|
},
|
|
"isDelivered": {
|
|
"type": "boolean"
|
|
},
|
|
"isReceived": {
|
|
"type": "boolean"
|
|
},
|
|
"ref": {
|
|
"type": "string"
|
|
},
|
|
"totalEntries": {
|
|
"type": "number"
|
|
},
|
|
"m3": {
|
|
"type": "number"
|
|
},
|
|
"kg": {
|
|
"type": "number"
|
|
},
|
|
"cargoSupplierFk": {
|
|
"type": "number"
|
|
},
|
|
"agencyModeFk": {
|
|
"type": "number"
|
|
},
|
|
"shipmentHour": {
|
|
"type": "string"
|
|
},
|
|
"landingHour": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"relations": {
|
|
"agency": {
|
|
"type": "belongsTo",
|
|
"model": "AgencyMode",
|
|
"foreignKey": "agencyModeFk"
|
|
},
|
|
"warehouseIn": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseInFk"
|
|
},
|
|
"warehouseOut": {
|
|
"type": "belongsTo",
|
|
"model": "Warehouse",
|
|
"foreignKey": "warehouseOutFk"
|
|
}
|
|
}
|
|
}
|
|
|