{ "name": "Travel", "base": "Loggable", "log": { "model":"TravelLog", "showField": "ref" }, "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" } }, "relations": { "agency": { "type": "belongsTo", "model": "AgencyMode", "foreignKey": "agencyModeFk" }, "warehouseIn": { "type": "belongsTo", "model": "Warehouse", "foreignKey": "warehouseInFk" }, "warehouseOut": { "type": "belongsTo", "model": "Warehouse", "foreignKey": "warehouseOutFk" } } }