{
  "format": "dataset-manifest/1",
  "slug": "logistics-performance-metrics",
  "version": 3,
  "seed": "logistics-performance-metrics:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "logistics-performance-metrics",
    "name": "Logistics Performance Metrics",
    "tagline": "Logistics performance metrics including warehouses, products, customer orders, shippers, and payment data.",
    "description": "A logistics company moves products efficiently from suppliers to customers, managing the intricate details of warehouse operations, order fulfillment, and shipping logistics. Within this operation, warehouses store various products that are then picked and packed based on customer orders. Shippers are tasked with delivering these orders to customers, ensuring timely and reliable service. Payments processed through the system track customer transactions, including the usage of coupons, which reveals insights into purchasing behavior and sales trends.\n\nEach row in the warehouses table represents a unique storage facility, detailing its location and capacity. The products table lists the items available for order, including their specifications and stock levels. Customer orders document individual requests made by clients, linking to specific products and specifying which warehouse will fulfill the order. Shippers are linked to customer orders, indicating which company is responsible for delivery, while the payments table records transaction details that correspond to each order made by a customer.\n\nThis dataset is useful for practitioners seeking to analyze logistics operations, customer purchasing trends, and payment behaviors. Developers can explore questions like: How do warehouse capacities affect order fulfillment rates? What is the average shipping time for different shippers? How do coupon promotions influence overall sales? The interplay between these tables provides the data needed to uncover insights into efficiency, service quality, and areas for improvement within the logistics process. Note that this data is synthetic, designed to simulate real-world scenarios for practice and analysis.",
    "domain": "logistics",
    "shape": "star-schema",
    "useCases": [
      "bi-dashboards",
      "analytics-demo"
    ],
    "keywords": [
      "logistics",
      "performance",
      "warehouse",
      "orders",
      "shipping",
      "payments",
      "coupons",
      "metrics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "warehouses": {
        "description": "This table contains information about the warehouses where products are stored, including location and capacity.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each warehouse."
          },
          "location": {
            "kind": "city",
            "description": "City where the warehouse is located."
          },
          "capacity": {
            "kind": "int",
            "min": 1000,
            "max": 10000,
            "description": "Maximum storage capacity of the warehouse."
          },
          "region": {
            "kind": "enum",
            "values": [
              "North",
              "South",
              "East",
              "West"
            ],
            "weights": [
              25,
              25,
              25,
              25
            ],
            "description": "Geographical region of the warehouse."
          },
          "current_stock": {
            "kind": "int",
            "min": 0,
            "max": 10000,
            "distribution": "normal",
            "description": "Current amount of products stored in the warehouse."
          }
        }
      },
      "products": {
        "description": "This table holds details about products being stored and shipped, linking to the warehouse they belong to.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "name": {
            "kind": "productName",
            "description": "Name of the product."
          },
          "warehouse_id": {
            "kind": "fk",
            "ref": "warehouses.id",
            "description": "Identifier of the warehouse where the product is stored."
          },
          "price": {
            "kind": "decimal",
            "min": 5,
            "max": 500,
            "scale": 2,
            "description": "Price of the product.",
            "distribution": "long-tail"
          },
          "category": {
            "kind": "enum",
            "values": [
              "Electronics",
              "Clothing",
              "Food",
              "Furniture"
            ],
            "weights": [
              25,
              25,
              25,
              25
            ],
            "description": "Category of the product."
          },
          "weight": {
            "kind": "decimal",
            "min": 0.1,
            "max": 50,
            "scale": 2,
            "distribution": "normal",
            "description": "Weight of the product in kilograms."
          }
        }
      },
      "customer_orders": {
        "description": "This table tracks customer orders, detailing the products ordered, shipping status, and customer information.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer order."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Identifier of the ordered product."
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 20,
            "description": "Quantity of the product ordered.",
            "distribution": "long-tail"
          },
          "order_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the order was placed.",
            "dayProfile": "waking"
          },
          "shipping_status": {
            "kind": "enum",
            "values": [
              "pending",
              "shipped",
              "delivered",
              "returned"
            ],
            "description": "Current shipping status of the order."
          }
        }
      },
      "shippers": {
        "description": "This table includes information about shipping companies responsible for delivering orders.",
        "rows": 30,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each shipper."
          },
          "name": {
            "kind": "company",
            "description": "Name of the shipping company."
          },
          "contact_info": {
            "kind": "words",
            "description": "Contact information for the shipping company."
          },
          "service_area": {
            "kind": "enum",
            "values": [
              "Local",
              "Regional",
              "National"
            ],
            "weights": [
              50,
              30,
              20
            ],
            "description": "Scope of the shipping company's delivery area."
          },
          "average_delivery_time": {
            "kind": "int",
            "min": 1,
            "max": 14,
            "distribution": "normal",
            "description": "Average delivery time in days."
          }
        }
      },
      "payments": {
        "description": "This table records payment details related to customer orders, including coupon usage.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each payment."
          },
          "order_id": {
            "kind": "fk",
            "ref": "customer_orders.id",
            "description": "Identifier of the associated customer order."
          },
          "payment_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the payment was made.",
            "dayProfile": "business"
          },
          "amount": {
            "kind": "decimal",
            "min": 5,
            "max": 5000,
            "scale": 2,
            "description": "Total amount paid for the order.",
            "distribution": "heavy-tail"
          },
          "coupon_used": {
            "kind": "bool",
            "trueRate": 0.3,
            "description": "Indicates if a coupon was used for the payment."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "monetary",
      "timestamped",
      "categorical"
    ],
    "analysisQuestions": [
      "What is the average order value across different warehouses?",
      "How do coupon usages affect sales performance?",
      "What shipping statuses are most common for customer orders?",
      "Which products have the highest return rates?",
      "How does order volume vary by day of the week?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Orders and Payments",
        "sql": "SELECT co.id, co.order_date, p.amount FROM customer_orders co JOIN payments p ON co.id = p.order_id",
        "dialect": "postgres"
      },
      {
        "title": "Average Order Value by Warehouse",
        "sql": "SELECT w.location, AVG(p.price * co.quantity) AS avg_order_value FROM warehouses w JOIN products p ON w.id = p.warehouse_id JOIN customer_orders co ON p.id = co.product_id GROUP BY w.location",
        "dialect": "postgres"
      },
      {
        "title": "Count Orders by Shipping Status",
        "sql": "SELECT shipping_status, COUNT(*) FROM customer_orders GROUP BY shipping_status",
        "dialect": "postgres"
      },
      {
        "title": "Payment Amounts Over Time",
        "sql": "SELECT DATE(payment_date) AS payment_day, SUM(amount) FROM payments GROUP BY payment_day ORDER BY payment_day",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Business Intelligence Dashboard",
        "body": "Data analysts at a logistics company can use this dataset to create a BI dashboard that visualizes key performance metrics. By integrating order data, payment information, and shipping statuses, analysts can provide stakeholders with insights into operational efficiency and financial health."
      },
      {
        "title": "Sales Performance Analysis",
        "body": "Marketing teams can leverage this dataset to analyze the effectiveness of promotional campaigns by examining coupon usage against sales performance. Understanding which promotions drive sales will help refine future marketing efforts and improve overall strategy."
      },
      {
        "title": "Operational Efficiency Review",
        "body": "Operations managers can utilize the data to review shipping performance and identify bottlenecks. By analyzing shipping statuses and return rates, they can make informed decisions to enhance logistics processes and improve service quality."
      },
      {
        "title": "Product Demand Forecasting",
        "body": "Product managers can exploit the dataset to forecast demand for various products by analyzing order trends and quantities. This information will aid in inventory management and ensuring that warehouses are stocked appropriately to meet customer needs."
      }
    ]
  },
  "counts": {
    "shippers": 30,
    "warehouses": 50,
    "products": 200,
    "customer_orders": 500,
    "payments": 500
  },
  "stats": {
    "warehouses": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "location": {
          "nulls": 0,
          "distinct": 37,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "capacity": {
          "nulls": 0,
          "distinct": 50,
          "min": 1049,
          "max": 9749
        },
        "region": {
          "nulls": 0,
          "distinct": 4,
          "min": "East",
          "max": "West"
        },
        "current_stock": {
          "nulls": 0,
          "distinct": 48,
          "min": 1961,
          "max": 7588
        }
      }
    },
    "products": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 166,
          "min": "Classic Backpack",
          "max": "Wireless Umbrella"
        },
        "warehouse_id": {
          "nulls": 0,
          "distinct": 46,
          "min": 1,
          "max": 50
        },
        "price": {
          "nulls": 0,
          "distinct": 199,
          "min": 5.01,
          "max": 495.46
        },
        "category": {
          "nulls": 0,
          "distinct": 4,
          "min": "Clothing",
          "max": "Furniture"
        },
        "weight": {
          "nulls": 0,
          "distinct": 194,
          "min": 8.46,
          "max": 46.8
        }
      }
    },
    "customer_orders": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "product_id": {
          "nulls": 0,
          "distinct": 183,
          "min": 1,
          "max": 200
        },
        "quantity": {
          "nulls": 0,
          "distinct": 20,
          "min": 1,
          "max": 20
        },
        "order_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 19:43:30",
          "max": "2023-12-30 08:41:06"
        },
        "shipping_status": {
          "nulls": 0,
          "distinct": 4,
          "min": "delivered",
          "max": "shipped"
        }
      }
    },
    "shippers": {
      "rows": 30,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 30,
          "min": 1,
          "max": 30
        },
        "name": {
          "nulls": 0,
          "distinct": 30,
          "min": "Acme Foods",
          "max": "Vector Logistics"
        },
        "contact_info": {
          "nulls": 0,
          "distinct": 30
        },
        "service_area": {
          "nulls": 0,
          "distinct": 3,
          "min": "Local",
          "max": "Regional"
        },
        "average_delivery_time": {
          "nulls": 0,
          "distinct": 6,
          "min": 5,
          "max": 10
        }
      }
    },
    "payments": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "order_id": {
          "nulls": 0,
          "distinct": 313,
          "min": 1,
          "max": 500
        },
        "payment_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 08:59:22",
          "max": "2023-12-30 15:44:48"
        },
        "amount": {
          "nulls": 0,
          "distinct": 491,
          "min": 5,
          "max": 4939.61
        },
        "coupon_used": {
          "nulls": 0,
          "distinct": 2,
          "min": "false",
          "max": "true"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/shippers.csv",
      "format": "csv",
      "table": "shippers",
      "key": "datasets/logistics-performance-metrics/v3/csv/shippers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/csv/shippers.csv",
      "bytes": 1640,
      "sha256": "3a4274dd982cc4c1a43051cc1e4ef68fca7225151dea2550f78e901f625a68b2",
      "rows": 30,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/warehouses.csv",
      "format": "csv",
      "table": "warehouses",
      "key": "datasets/logistics-performance-metrics/v3/csv/warehouses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/csv/warehouses.csv",
      "bytes": 1413,
      "sha256": "61878ae5fe185dbb4b9a3df25616742cabb59a04c482e0d07800c9bb06e48351",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/logistics-performance-metrics/v3/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/csv/products.csv",
      "bytes": 8855,
      "sha256": "0b1515d14160c2e60b66fa9355ca81eea6bc7f928a4e638eeb1b871e072ad366",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/customer_orders.csv",
      "format": "csv",
      "table": "customer_orders",
      "key": "datasets/logistics-performance-metrics/v3/csv/customer_orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/csv/customer_orders.csv",
      "bytes": 19693,
      "sha256": "56338d8dc38fffb0281ca736138ce820d181c3f61747fa254745203a731dc6a5",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payments.csv",
      "format": "csv",
      "table": "payments",
      "key": "datasets/logistics-performance-metrics/v3/csv/payments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/csv/payments.csv",
      "bytes": 20647,
      "sha256": "bee3fc0e1d98a8d0e88e67f9e5f696c64eab27d67de1d6ffb791d709b4fc64a3",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "logistics-performance-metrics.json",
      "format": "json",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/logistics-performance-metrics.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/logistics-performance-metrics.json",
      "bytes": 195638,
      "sha256": "c60fec90dd54963e8c8f5310fe2466cd3248a1812b51c21bd4df83cabe99c2fe",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/sql/postgres.sql",
      "bytes": 72487,
      "sha256": "c118bd64306af6a1b8c04bef72e5cbe3b2882023e14c30791c044a1be3a4c93d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/sql/mysql.sql",
      "bytes": 70075,
      "sha256": "b7c14ef8b1f12ba0079638093a7c252fa88519244bdd3295c59335ac30eaa4b0",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/sql/mssql.sql",
      "bytes": 72491,
      "sha256": "d386f21b19b7dbd1bcc9de6c0eb9c504848d060ffac89b758c69f059352a7e7b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/sql/sqlite.sql",
      "bytes": 69896,
      "sha256": "e3dca45af67183eeaa9ebe347d7ceebe56b4a7b072f768b8b4de06b7b2100f2b",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/prisma/seed.ts",
      "bytes": 161823,
      "sha256": "c5a2893b9659470080b150d7d66ebc7ffede6ba1f0850affbbeb7037f896d4e3",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/logistics-performance-metrics/v3/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-metrics/v3/django/fixtures.json",
      "bytes": 254221,
      "sha256": "23fb1299f2b6c41d113923a490b0702d84d950826aea78eab0535f0a795b1efe",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766960106,
  "updatedAt": 1789095906591
}
