{
  "format": "dataset-manifest/1",
  "slug": "freight-management-insights",
  "version": 4,
  "seed": "freight-management-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "freight-management-insights",
    "name": "Freight Management Insights",
    "tagline": "Customer orders, delivery routes, product availability, and support tickets in logistics operations.",
    "description": "Customers place orders for various products needed for their businesses, and this business ensures those orders are fulfilled efficiently. Each order is linked to a specific customer, detailing what products are requested and their respective delivery routes. The logistics team meticulously plans the routes for deliveries, taking into account factors like distance, traffic patterns, and product availability at warehouses. This optimization is crucial, as timely deliveries are essential to maintaining customer satisfaction and loyalty.\n\nThe customers table contains information about the individual clients, including their locations and business needs. Each order in the orders table is mapped to a customer, linking back to the customers table, while the products table lists the available items, detailing specifications and stock levels. The routes table provides data on the planned logistics pathways for deliveries, crucial for assessing delivery efficiency. Finally, the support_tickets table captures customer inquiries, ranging from routine questions to urgent issues regarding delivery delays or product availability, offering insight into customer service performance.\n\nThis dataset can answer vital questions around order fulfillment rates, product demand variations by region, and the effectiveness of delivery routes. Analyzing support tickets can uncover patterns related to common delivery issues, helping to enhance service quality. Practicing with this data allows developers to explore relationships between customer behavior, product performance, and logistical challenges in a realistic logistics environment. It’s important to note that all data included is synthetic, designed to mimic real-world scenarios while ensuring privacy and confidentiality.",
    "domain": "logistics",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "logistics",
      "freight",
      "orders",
      "delivery",
      "inventory",
      "support",
      "routes",
      "customers"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "This table holds information about customers, linking to their orders and support tickets. Each customer has a unique ID.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the customer."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the customer."
          },
          "city": {
            "kind": "city",
            "description": "City where the customer is located.",
            "nullable": true
          },
          "country": {
            "kind": "country",
            "from": "city",
            "description": "Country where the customer resides.",
            "nullable": true
          }
        }
      },
      "orders": {
        "description": "This table captures details of customer orders, linking to the customers and products involved. Each order is uniquely identified.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each order."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer who placed the order."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Reference to the product ordered."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-12-31",
            "description": "Date when the order was placed.",
            "dayProfile": "waking"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Quantity of the product ordered.",
            "nullable": true
          }
        }
      },
      "products": {
        "description": "This table contains details about products available for order, linking to their inventory levels.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "product_name": {
            "kind": "productName",
            "description": "Name of the product."
          },
          "stock_level": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Current stock level of the product.",
            "nullable": true
          },
          "category": {
            "kind": "enum",
            "values": [
              "Electronics",
              "Furniture",
              "Clothing"
            ],
            "description": "Category of the product.",
            "weights": [
              6,
              2,
              2
            ]
          }
        }
      },
      "routes": {
        "description": "This table details delivery routes, linking to orders and providing logistics information.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each route."
          },
          "order_id": {
            "kind": "fk",
            "ref": "orders.id",
            "description": "Reference to the order associated with this route."
          },
          "route_distance": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2,
            "description": "Distance of the delivery route in kilometers.",
            "distribution": "normal"
          },
          "estimated_time": {
            "kind": "decimal",
            "min": 0.1,
            "max": 24,
            "scale": 2,
            "description": "Estimated delivery time in hours.",
            "distribution": "long-tail"
          }
        }
      },
      "support_tickets": {
        "description": "This table tracks support tickets related to customer orders, linking to the customers for follow-up.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each support ticket."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer who submitted the ticket."
          },
          "issue": {
            "kind": "words",
            "min": 1,
            "max": 3,
            "description": "Description of the issue reported by the customer.",
            "nullable": true,
            "pool": [
              "delay",
              "damage",
              "missing",
              "billing",
              "shipment",
              "tracking",
              "service",
              "communication",
              "error",
              "invoice",
              "schedule",
              "pickup",
              "delivery",
              "customs",
              "notification",
              "request",
              "refund",
              "claim",
              "process",
              "confirmation",
              "discrepancy",
              "quality",
              "inspection",
              "status",
              "support",
              "resolution",
              "feedback",
              "system",
              "policy",
              "procedure",
              "solution",
              "problem",
              "assistance",
              "information",
              "update",
              "logistics",
              "transport",
              "warehouse",
              "dispatch",
              "route",
              "availability",
              "scheduling",
              "coordination",
              "performance",
              "customer",
              "response",
              "issue",
              "ticket",
              "case",
              "priority",
              "escalation",
              "contact",
              "agent"
            ]
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-12-31",
            "description": "Date when the support ticket was created.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "closed"
              ]
            },
            "dayProfile": "business"
          },
          "status": {
            "kind": "enum",
            "values": [
              "open",
              "closed",
              "pending"
            ],
            "description": "Current status of the support ticket.",
            "weights": [
              1,
              8,
              3
            ]
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What are the most common support issues reported by customers?",
      "Which products have the highest stock levels and how does this impact sales?",
      "How do delivery times vary across different routes and orders?",
      "What trends can be observed in customer orders over time?",
      "Which regions have the highest demand for specific product categories?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Customers and Orders",
        "sql": "SELECT customers.full_name, orders.order_date FROM customers JOIN orders ON customers.id = orders.customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Orders per Customer",
        "sql": "SELECT customer_id, COUNT(*) FROM orders GROUP BY customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Route Distance by Product Category",
        "sql": "SELECT products.category, AVG(routes.route_distance) FROM routes JOIN orders ON routes.order_id = orders.id JOIN products ON orders.product_id = products.id GROUP BY products.category;",
        "dialect": "postgres"
      },
      {
        "title": "Support Ticket Status Counts",
        "sql": "SELECT status, COUNT(*) FROM support_tickets GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Monthly Order Trends",
        "sql": "SELECT DATE_TRUNC('month', order_date) AS month, COUNT(*) FROM orders GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Logistics Analyst",
        "body": "A logistics analyst can use this dataset to analyze customer order trends, identifying peak times for orders, and correlating them with delivery route performance. This analysis will help in optimizing operational efficiency and improving customer satisfaction."
      },
      {
        "title": "Data Science Educator",
        "body": "An educator in data science might use this dataset to teach students about relational databases and SQL querying. By using real-world examples from logistics, students can practice writing complex queries and performing data analysis."
      },
      {
        "title": "Customer Support Manager",
        "body": "A customer support manager can leverage this dataset to track common support issues reported by customers. By analyzing the data, they can identify areas for improvement in the delivery process and enhance customer service strategies."
      },
      {
        "title": "Inventory Manager",
        "body": "An inventory manager can use the product and order data to forecast stock requirements based on historical order trends. This will ensure that inventory levels are optimized and that popular products are always available for customers."
      }
    ]
  },
  "counts": {
    "customers": 300,
    "products": 200,
    "orders": 600,
    "routes": 150,
    "support_tickets": 100
  },
  "stats": {
    "customers": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 0,
          "distinct": 290,
          "min": "Alice Diaz",
          "max": "Zoe Tanaka"
        },
        "email": {
          "nulls": 0,
          "distinct": 297
        },
        "city": {
          "nulls": 38,
          "distinct": 62,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "country": {
          "nulls": 38,
          "distinct": 43,
          "min": "Argentina",
          "max": "United States"
        }
      }
    },
    "orders": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 262,
          "min": 1,
          "max": 300
        },
        "product_id": {
          "nulls": 0,
          "distinct": 189,
          "min": 1,
          "max": 200
        },
        "order_date": {
          "nulls": 0,
          "distinct": 600,
          "min": "2021-01-01 04:15:36",
          "max": "2023-12-31 15:20:30"
        },
        "quantity": {
          "nulls": 56,
          "distinct": 10,
          "min": 1,
          "max": 10
        }
      }
    },
    "products": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "product_name": {
          "nulls": 0,
          "distinct": 165,
          "min": "Classic Backpack",
          "max": "Wireless Watch"
        },
        "stock_level": {
          "nulls": 18,
          "distinct": 88,
          "min": 0,
          "max": 100
        },
        "category": {
          "nulls": 0,
          "distinct": 3,
          "min": "Clothing",
          "max": "Furniture"
        }
      }
    },
    "routes": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "order_id": {
          "nulls": 0,
          "distinct": 137,
          "min": 1,
          "max": 600
        },
        "route_distance": {
          "nulls": 0,
          "distinct": 150,
          "min": 140.09,
          "max": 933.9
        },
        "estimated_time": {
          "nulls": 0,
          "distinct": 139,
          "min": 0.1,
          "max": 23.83
        }
      }
    },
    "support_tickets": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 82,
          "min": 1,
          "max": 296
        },
        "issue": {
          "nulls": 10,
          "distinct": 84
        },
        "created_at": {
          "nulls": 27,
          "distinct": 73,
          "min": "2021-01-20 20:28:12",
          "max": "2023-12-16 09:45:12"
        },
        "status": {
          "nulls": 0,
          "distinct": 3,
          "min": "closed",
          "max": "pending"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/freight-management-insights/v4/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/csv/customers.csv",
      "bytes": 16763,
      "sha256": "952283c86f240ed391b84ffc0054232f194d13b2abff654d1807421da3e245fa",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/freight-management-insights/v4/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/csv/products.csv",
      "bytes": 6663,
      "sha256": "5dd459fb9b5412d73a2c8223a06674342e5b84d9f770341f5544756d734e9d96",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/freight-management-insights/v4/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/csv/orders.csv",
      "bytes": 20372,
      "sha256": "81278f26d2e9912157a23bf313f3ef998cb0908350240c076e76ec95a055fe86",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/routes.csv",
      "format": "csv",
      "table": "routes",
      "key": "datasets/freight-management-insights/v4/csv/routes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/csv/routes.csv",
      "bytes": 3111,
      "sha256": "ecee06d21211f66feed46ff25323944e4ef2148d24135a3e51959de40e9341f3",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/support_tickets.csv",
      "format": "csv",
      "table": "support_tickets",
      "key": "datasets/freight-management-insights/v4/csv/support_tickets.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/csv/support_tickets.csv",
      "bytes": 4559,
      "sha256": "7aaf76ec6df762bc5eec97dd14cac5720d6465dca8f908dc30eaafa6c1a3260a",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "freight-management-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/freight-management-insights/v4/freight-management-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/freight-management-insights.json",
      "bytes": 190512,
      "sha256": "b75e10ba6aa2e6630c58ecf9ecfa39f2c37fcfa79b16f7444bd8ffb72060ce0b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/freight-management-insights/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/sql/postgres.sql",
      "bytes": 72969,
      "sha256": "67fd71c16da589e0d9ef81756aa81a92e75377c05d92dc531c1260a328781390",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/freight-management-insights/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/sql/mysql.sql",
      "bytes": 72404,
      "sha256": "c3f86c10614ef4487a2673aaa03391b085fd7e40e0f225db61eed717ba72a7c8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/freight-management-insights/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/sql/mssql.sql",
      "bytes": 75114,
      "sha256": "c80e39c359a6e17bcd45437cd7c3e547a4d43ea427d10edf7750ec7f2b515587",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/freight-management-insights/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/sql/sqlite.sql",
      "bytes": 72203,
      "sha256": "a5d1ce4ad0631ba73e20a0834c6ad2477bce40da583ae5c963b455d0b50486d9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/freight-management-insights/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/prisma/seed.ts",
      "bytes": 153761,
      "sha256": "e62b793f31e536225c5e37f73eb2548e324c511a1cc647c322b33b641c08c3d3",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/freight-management-insights/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/freight-management-insights/v4/django/fixtures.json",
      "bytes": 246165,
      "sha256": "4c83717c87ec06b63abe89c0fc43bc89fde61658b0e869811e388fd9fca1e8ad",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767361417,
  "updatedAt": 1788798026616
}
