{
    "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",
			"mysql": {
				"columnName": "agencyFk"
			}
        }
    },
    "relations": {
        "agency": {
            "type": "belongsTo",
            "model": "AgencyMode",
            "foreignKey": "agencyFk"
        },
        "warehouseIn": {
            "type": "belongsTo",
            "model": "Warehouse",
            "foreignKey": "warehouseInFk"
        },
        "warehouseOut": {
            "type": "belongsTo",
            "model": "Warehouse",
            "foreignKey": "warehouseOutFk"
        }
    }
}