{ "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" }, "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" } } }