{
  "format": "dataset-manifest/1",
  "slug": "logistics-performance-insights",
  "version": 1,
  "seed": "logistics-performance-insights:1",
  "spec": {
    "format": "dataset/1",
    "slug": "logistics-performance-insights",
    "name": "Logistics Performance Insights",
    "tagline": "Orders, customers, products, warehouses, and reviews from a logistics company's operations across various regions.",
    "description": "A logistics company coordinates the movement of goods seamlessly across various regions, relying on a well-organized network of warehouses and transportation routes. Customers place orders for a variety of products, triggering a series of operations that include payment transactions, inventory checks from warehouses, and eventual shipments. As these orders are processed, customers sometimes provide reviews based on their experiences, offering valuable feedback for the company. This dynamic business model thrives on the interplay between these elements, reflecting how efficient logistics contribute to customer satisfaction and operational performance.\n\nThe dataset includes several tables that interconnect to provide a comprehensive view of the logistics operations. Each row in the orders table represents a unique order placed by a customer, detailing products, quantities, and shipping information. Related to these orders is the customers table, where each entry captures customer details and their order history. The products table catalogs all available items, including specifics like pricing and stock levels, while the warehouses table offers insights into the locations and capacities of storage facilities. Finally, the reviews table showcases customer feedback tied to specific orders, although predominantly sparse, reflecting a trend where customers only share their thoughts after notable experiences.\n\nThis dataset answers various questions regarding order volumes, customer demographics, product performance, and warehouse efficiency. Developers can practice joining these tables to analyze regional shipping trends, identify clusters of orders, and evaluate the impact of customer reviews on overall satisfaction. The data is synthetic, generated to simulate real-world interactions in logistics, making it an excellent resource for honing skills in database management, query optimization, and data analysis.",
    "domain": "logistics",
    "shape": "star-schema",
    "useCases": [
      "bi-dashboards",
      "analytics-demo"
    ],
    "keywords": [
      "logistics",
      "orders",
      "shipping",
      "warehouses",
      "customer reviews",
      "analytics",
      "data insights"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "orders": {
        "description": "This table records all user orders, linking to customers and products. Each order includes details such as the order date, status, and associated warehouse.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the order."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "References the customer who placed the order.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "shipped",
                "delivered"
              ]
            }
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "References the product being ordered.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "shipped",
                "delivered"
              ]
            }
          },
          "warehouse_id": {
            "kind": "fk",
            "ref": "warehouses.id",
            "description": "References the warehouse from which the order is fulfilled.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "shipped",
                "delivered"
              ]
            }
          },
          "order_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the order was placed.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "shipped",
                "delivered"
              ]
            },
            "dayProfile": "business"
          },
          "status": {
            "kind": "enum",
            "values": [
              "pending",
              "shipped",
              "delivered",
              "canceled"
            ],
            "description": "Current status of the order."
          }
        }
      },
      "customers": {
        "description": "This table holds customer details, including names and contact information. It serves as a dimension table for the orders.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the customer.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the customer.",
            "nullable": true
          },
          "phone": {
            "kind": "phone",
            "description": "Contact phone number of the customer.",
            "nullable": true
          },
          "city": {
            "kind": "city",
            "description": "City where the customer resides.",
            "nullable": true
          }
        }
      },
      "products": {
        "description": "This table contains details about the products available for order. It links to the orders table to detail what is being purchased.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the product."
          },
          "product_name": {
            "kind": "productName",
            "description": "Name of the product.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "electronics",
                "furniture"
              ]
            }
          },
          "category": {
            "kind": "enum",
            "values": [
              "electronics",
              "furniture",
              "clothing"
            ],
            "description": "Category of the product."
          },
          "price": {
            "kind": "decimal",
            "min": 10,
            "max": 1000,
            "scale": 2,
            "description": "Price of the product.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "electronics",
                "furniture"
              ]
            }
          }
        }
      },
      "warehouses": {
        "description": "This table provides information about the warehouses that fulfill orders. It acts as a dimension table for orders.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the warehouse."
          },
          "location": {
            "kind": "city",
            "description": "City where the warehouse is located."
          },
          "capacity": {
            "kind": "int",
            "min": 100,
            "max": 1000,
            "description": "Maximum capacity of the warehouse."
          }
        }
      },
      "reviews": {
        "description": "This table captures customer reviews for orders, linking back to the orders table. It provides insights into customer satisfaction.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the review."
          },
          "order_id": {
            "kind": "fk",
            "ref": "orders.id",
            "description": "References the order being reviewed."
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Rating given by the customer."
          },
          "comment": {
            "kind": "words",
            "min": 10,
            "max": 200,
            "description": "Customer's feedback regarding the order.",
            "nullable": true
          },
          "review_date": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-12-31",
            "description": "Date when the review was submitted.",
            "nullable": true,
            "dayProfile": "waking"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common order statuses and how do they vary by month?",
      "Which products receive the highest ratings from customers?",
      "How does warehouse location affect order fulfillment times?",
      "What trends can we identify in customer reviews over time?",
      "Which regions have the highest order volumes?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Orders and Customers",
        "sql": "SELECT o.id, c.full_name FROM orders o JOIN customers c ON o.customer_id = c.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Orders by Status",
        "sql": "SELECT status, COUNT(*) FROM orders GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Average Ratings for Products",
        "sql": "SELECT p.product_name, AVG(r.rating) FROM products p LEFT JOIN reviews r ON p.id = r.order_id GROUP BY p.product_name;",
        "dialect": "postgres"
      },
      {
        "title": "Order Trends Over Time",
        "sql": "SELECT DATE_TRUNC('month', order_date) AS month, COUNT(*) FROM orders GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Customer Reviews and Order Status",
        "sql": "SELECT o.status, AVG(r.rating) FROM orders o JOIN reviews r ON o.id = r.order_id GROUP BY o.status;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Logistics Manager Analysis",
        "body": "A logistics manager can utilize this dataset to analyze order fulfillment efficiency by examining the shipment delays and identifying bottlenecks in warehouse operations. By comparing order statuses and fulfillment times across different warehouses, they can make data-driven decisions to optimize logistics processes."
      },
      {
        "title": "Customer Insights for Marketing",
        "body": "A marketing analyst can leverage customer reviews to understand customer satisfaction and preferences. By analyzing the ratings and feedback provided in reviews, they can tailor marketing strategies to highlight popular products and address areas needing improvement."
      },
      {
        "title": "Financial Analyst Review",
        "body": "A financial analyst can explore the pricing trends of products and analyze the impact of order volumes on revenue generation. By aggregating data on product sales and correlating it with customer reviews, they can provide insights on product performance and potential profitability."
      },
      {
        "title": "Operational Efficiency Reports",
        "body": "An operations analyst can use the dataset to create reports on warehouse performance, identifying which locations fulfill orders most efficiently. This information can guide future decisions regarding warehouse placement and capacity management."
      }
    ]
  },
  "counts": {
    "customers": 300,
    "products": 200,
    "warehouses": 50,
    "orders": 500,
    "reviews": 150
  },
  "stats": {
    "orders": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "customer_id": {
          "nulls": 246,
          "distinct": 164,
          "min": 1,
          "max": 300
        },
        "product_id": {
          "nulls": 246,
          "distinct": 143,
          "min": 3,
          "max": 200
        },
        "warehouse_id": {
          "nulls": 246,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "order_date": {
          "nulls": 246,
          "distinct": 254,
          "min": "2022-01-03 13:18:40",
          "max": "2023-12-22 10:12:22"
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "canceled",
          "max": "shipped"
        }
      }
    },
    "customers": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "full_name": {
          "nulls": 27,
          "distinct": 268,
          "min": "Alice Chen",
          "max": "Zoe Reyes"
        },
        "email": {
          "nulls": 57,
          "distinct": 242
        },
        "phone": {
          "nulls": 30,
          "distinct": 260
        },
        "city": {
          "nulls": 36,
          "distinct": 61,
          "min": "Amsterdam",
          "max": "Zurich"
        }
      }
    },
    "products": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "product_name": {
          "nulls": 69,
          "distinct": 116,
          "min": "Classic Backpack",
          "max": "Wireless Watch"
        },
        "category": {
          "nulls": 0,
          "distinct": 3,
          "min": "clothing",
          "max": "furniture"
        },
        "price": {
          "nulls": 69,
          "distinct": 130,
          "min": 14.2,
          "max": 988.09
        }
      }
    },
    "warehouses": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "location": {
          "nulls": 0,
          "distinct": 33,
          "min": "Ankara",
          "max": "Warsaw"
        },
        "capacity": {
          "nulls": 0,
          "distinct": 48,
          "min": 168,
          "max": 918
        }
      }
    },
    "reviews": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "order_id": {
          "nulls": 0,
          "distinct": 127,
          "min": 6,
          "max": 498
        },
        "rating": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "comment": {
          "nulls": 15,
          "distinct": 135
        },
        "review_date": {
          "nulls": 20,
          "distinct": 130,
          "min": "2022-01-06 12:42:47",
          "max": "2023-12-14 08:05:57"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/logistics-performance-insights/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/csv/customers.csv",
      "bytes": 17093,
      "sha256": "ec555e8c6453385bc9a4fcba1c5f6005f51f88e982ff6bf4e24959cab18a8677",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/logistics-performance-insights/v1/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/csv/products.csv",
      "bytes": 6000,
      "sha256": "302457ec58a7876f539ad36562cf581c228e506e9d41ec355c5837719b31a82c",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/warehouses.csv",
      "format": "csv",
      "table": "warehouses",
      "key": "datasets/logistics-performance-insights/v1/csv/warehouses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/csv/warehouses.csv",
      "bytes": 817,
      "sha256": "388e355e1a7003d31e5b726051b4b89214d973ff5a4f73cbe7f17dd565bf8358",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/logistics-performance-insights/v1/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/csv/orders.csv",
      "bytes": 15405,
      "sha256": "8ded86afc08cfd2be67a3fc5172de6b4a9976a675c249009dca8bce0abc897c9",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reviews.csv",
      "format": "csv",
      "table": "reviews",
      "key": "datasets/logistics-performance-insights/v1/csv/reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/csv/reviews.csv",
      "bytes": 108531,
      "sha256": "ec8583742711ab68062905814bdaf1ef4828b0ec176b40104f4c89699c6c168f",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "logistics-performance-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/logistics-performance-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/logistics-performance-insights.json",
      "bytes": 283671,
      "sha256": "78e980a422bb10ee76f9ead673f026eed4e0f39b15bfb0b31becc7234124718e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/sql/postgres.sql",
      "bytes": 172937,
      "sha256": "49c674388defe193e9a019a0bda9e1abb4b0962a929f4901844875cbca9ca46a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/sql/mysql.sql",
      "bytes": 172380,
      "sha256": "fd4e7b7df0756ddf3c59029c568502debd84df3667b306262f68f05e090843ab",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/sql/mssql.sql",
      "bytes": 175146,
      "sha256": "adaaaca0c4940afd483277d2be1ffd6032baebb4e125a4bee6af1ae4da481019",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/sql/sqlite.sql",
      "bytes": 172185,
      "sha256": "aa2f655b30ca50f82281c84d8b6ccce7c3db59a29dda28bee1c5da458589d463",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/prisma/seed.ts",
      "bytes": 244326,
      "sha256": "2e50f4d493f04086c259aca3b23cf29727afefd226835edd1f6be97a218e34bc",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/logistics-performance-insights/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/logistics-performance-insights/v1/django/fixtures.json",
      "bytes": 331290,
      "sha256": "81a159bd7f28662fdf4d4fc686f166ef616f3e2ef7129dacc85ee4c964a39c31",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734181493,
  "updatedAt": 1788734181493
}
