{
  "format": "dataset-manifest/1",
  "slug": "e-commerce-logistics-insights",
  "version": 4,
  "seed": "e-commerce-logistics-insights:1",
  "engine": 1,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "slug": "e-commerce-logistics-insights",
    "name": "E-commerce Logistics Insights",
    "tagline": "Merchants, products, wishlists, shopping carts, and customer reviews from the e-commerce logistics sector.",
    "description": "Merchants in e-commerce rely on a well-structured logistics network to efficiently connect with customers and manage their inventory. This dataset models the intricate relationships between merchants, their products, and the logistics involved in delivering these products. It includes tables detailing merchants and their staff, a catalog of products, user wishlists that reflect consumer preferences, shopping carts showcasing items ready for purchase, customer reviews that provide feedback on products, and delivery agents responsible for fulfilling orders. By exploring this dataset, users can gain insights into shopping behavior, product trends, and logistics efficiency. The data allows for analysis of which products are the most popular, the effectiveness of coupons in driving sales, and the overall performance of delivery agents. This is a synthetic dataset designed to help users practice data manipulation and analysis in a realistic setting.",
    "domain": "logistics",
    "shape": "slowly-changing",
    "useCases": [
      "etl-pipelines",
      "teaching"
    ],
    "keywords": [
      "e-commerce",
      "logistics",
      "merchants",
      "products",
      "wishlists",
      "shopping carts",
      "reviews",
      "coupons",
      "delivery agents"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "merchants": {
        "description": "Each row represents a merchant operating in the e-commerce space, with details about their staff and operations.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each merchant."
          },
          "name": {
            "kind": "company",
            "description": "Full name of the merchant."
          },
          "email": {
            "kind": "email",
            "from": "name",
            "description": "Email address for merchant communications."
          },
          "contact_number": {
            "kind": "phone",
            "description": "Contact number for the merchant.",
            "nullable": true
          },
          "location": {
            "kind": "city",
            "description": "City where the merchant is based.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date the merchant was registered.",
            "dayProfile": "business"
          }
        }
      },
      "products": {
        "description": "This table holds the products offered by merchants, including their details and pricing information.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "merchant_id": {
            "kind": "fk",
            "ref": "merchants.id",
            "description": "Identifier of the merchant offering the product."
          },
          "name": {
            "kind": "productName",
            "description": "Name of the product."
          },
          "price": {
            "kind": "decimal",
            "min": 1,
            "max": 1000,
            "scale": 2,
            "description": "Retail price of the product.",
            "distribution": "long-tail"
          },
          "stock_quantity": {
            "kind": "int",
            "min": 0,
            "max": 1000,
            "description": "Number of units available in stock.",
            "nullable": true,
            "distribution": "long-tail"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date the product was added to the catalog.",
            "dayProfile": "business"
          }
        }
      },
      "wishlists": {
        "description": "Tracks user wishlists, reflecting the products users are interested in purchasing.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each wishlist entry."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Identifier for the user who created the wishlist."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Identifier of the product added to the wishlist."
          },
          "added_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "description": "Date the product was added to the wishlist.",
            "dayProfile": "waking"
          },
          "wishlist_name": {
            "kind": "enum",
            "values": [
              "Spring Collection",
              "Holiday Gifts",
              "Tech Gadgets",
              "Home Decor",
              "Fashion Accessories",
              "Fitness Gear",
              "Books",
              "Kitchen Appliances",
              "Beauty Products",
              "Travel Essentials",
              "Pet Supplies",
              "Outdoor Equipment"
            ],
            "weights": [
              12,
              6,
              4,
              3,
              2,
              2,
              2,
              2,
              1,
              1,
              1,
              1
            ],
            "description": "Name of the wishlist representing the theme or purpose."
          }
        }
      },
      "shopping_carts": {
        "description": "Details the products that users have added to their shopping carts, indicating potential purchases.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each shopping cart entry."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Identifier for the user who created the shopping cart."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Identifier of the product in the shopping cart."
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Number of units of the product in the cart.",
            "distribution": "long-tail"
          },
          "added_at": {
            "kind": "datetime",
            "from": "2022-01-01",
            "to": "2023-01-01",
            "description": "Date the product was added to the shopping cart.",
            "dayProfile": "waking"
          }
        }
      },
      "reviews": {
        "description": "Captures customer feedback on products, providing insights into customer satisfaction.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each review."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Identifier of the product being reviewed."
          },
          "user_id": {
            "kind": "uuid",
            "description": "Identifier for the user who wrote the review."
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Rating given by the user, from 1 to 5 stars.",
            "distribution": "high"
          },
          "comment": {
            "kind": "sentence",
            "min": 5,
            "max": 250,
            "description": "Text review provided by the user.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-01-01",
            "description": "Date the review was submitted.",
            "dayProfile": "waking",
            "trend": "growing"
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "nullable",
      "timestamped"
    ],
    "analysisQuestions": [
      "What products are most frequently added to wishlists?",
      "How do customer reviews correlate with product sales?",
      "Which merchants have the highest average rating for their products?",
      "What is the average time taken for a product to receive a review after purchase?",
      "How effective are coupons in increasing shopping cart activity?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Merchants and Products",
        "sql": "SELECT merchants.name, products.name FROM merchants JOIN products ON merchants.id = products.merchant_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Reviews per Product",
        "sql": "SELECT product_id, COUNT(*) as review_count FROM reviews GROUP BY product_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Rating per Merchant",
        "sql": "SELECT products.merchant_id, AVG(reviews.rating) as average_rating FROM products JOIN reviews ON products.id = reviews.product_id GROUP BY products.merchant_id;",
        "dialect": "postgres"
      },
      {
        "title": "Products in Shopping Carts",
        "sql": "SELECT product_id, SUM(quantity) as total_quantity FROM shopping_carts GROUP BY product_id ORDER BY total_quantity DESC;",
        "dialect": "postgres"
      },
      {
        "title": "Wishlist Trends Over Time",
        "sql": "SELECT DATE(added_at) as date, COUNT(*) as wishlist_count FROM wishlists GROUP BY date ORDER BY date;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysis for E-commerce Platforms",
        "body": "E-commerce analysts can utilize this dataset to study product trends and customer preferences. By analyzing wishlists and shopping carts, they can identify which products are gaining traction and devise marketing strategies accordingly."
      },
      {
        "title": "Logistics Optimization",
        "body": "Logistics managers can leverage this dataset to understand the performance of delivery agents and the efficiency of product deliveries. By analyzing average delivery times and customer feedback, they can streamline their operations."
      },
      {
        "title": "Teaching Data Science Concepts",
        "body": "Educators can use this dataset as a practical example for teaching data science concepts. Students can practice SQL queries, data manipulation, and analysis techniques, leveraging real-world e-commerce scenarios."
      },
      {
        "title": "Coupon Effectiveness Research",
        "body": "Marketing teams can analyze the effectiveness of various coupons in driving sales through this dataset. By examining shopping cart data alongside coupon usage, they can determine which promotions yield the best results."
      }
    ]
  },
  "counts": {
    "merchants": 200,
    "products": 300,
    "reviews": 200,
    "shopping_carts": 500,
    "wishlists": 400
  },
  "stats": {
    "merchants": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 164,
          "min": "Acme Analytics",
          "max": "Willow Systems"
        },
        "email": {
          "nulls": 0,
          "distinct": 188
        },
        "contact_number": {
          "nulls": 27,
          "distinct": 167
        },
        "location": {
          "nulls": 17,
          "distinct": 59,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2020-01-13 19:17:49",
          "max": "2022-12-25 09:48:42"
        }
      }
    },
    "products": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "merchant_id": {
          "nulls": 0,
          "distinct": 151,
          "min": 1,
          "max": 200
        },
        "name": {
          "nulls": 0,
          "distinct": 226,
          "min": "Classic Blender",
          "max": "Wireless Umbrella"
        },
        "price": {
          "nulls": 0,
          "distinct": 298,
          "min": 1,
          "max": 987.99
        },
        "stock_quantity": {
          "nulls": 31,
          "distinct": 214,
          "min": 0,
          "max": 998
        },
        "created_at": {
          "nulls": 0,
          "distinct": 300,
          "min": "2020-01-03 15:35:49",
          "max": "2022-12-25 11:40:27"
        }
      }
    },
    "wishlists": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "user_id": {
          "nulls": 0,
          "distinct": 400
        },
        "product_id": {
          "nulls": 0,
          "distinct": 221,
          "min": 1,
          "max": 300
        },
        "added_at": {
          "nulls": 0,
          "distinct": 400,
          "min": "2022-01-01 01:40:15",
          "max": "2023-01-01 18:02:37"
        },
        "wishlist_name": {
          "nulls": 0,
          "distinct": 12,
          "min": "Beauty Products",
          "max": "Travel Essentials"
        }
      }
    },
    "shopping_carts": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "user_id": {
          "nulls": 0,
          "distinct": 500
        },
        "product_id": {
          "nulls": 0,
          "distinct": 243,
          "min": 1,
          "max": 300
        },
        "quantity": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "added_at": {
          "nulls": 0,
          "distinct": 500,
          "min": "2022-01-01 11:35:17",
          "max": "2023-01-01 18:48:40"
        }
      }
    },
    "reviews": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 144,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 200
        },
        "rating": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "comment": {
          "nulls": 25,
          "distinct": 175
        },
        "created_at": {
          "nulls": 0,
          "distinct": 200,
          "min": "2021-01-08 18:58:41",
          "max": "2022-12-31 15:14:45"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/merchants.csv",
      "format": "csv",
      "table": "merchants",
      "key": "datasets/e-commerce-logistics-insights/v4/csv/merchants.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/csv/merchants.csv",
      "bytes": 17234,
      "sha256": "9d4abf3d619ffed62a2d55f5f2f16890bd05ed9322481748f374bd75f5fd074e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/e-commerce-logistics-insights/v4/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/csv/products.csv",
      "bytes": 15947,
      "sha256": "8915eb259c58111b456a7c5f85e2ad4348099c820e2eb68c81275d5fbcd21e2c",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reviews.csv",
      "format": "csv",
      "table": "reviews",
      "key": "datasets/e-commerce-logistics-insights/v4/csv/reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/csv/reviews.csv",
      "bytes": 23456,
      "sha256": "1dfd2619409d7cfd1171a56de0464e4edbf607e22d869017c91813525e5de037",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/shopping_carts.csv",
      "format": "csv",
      "table": "shopping_carts",
      "key": "datasets/e-commerce-logistics-insights/v4/csv/shopping_carts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/csv/shopping_carts.csv",
      "bytes": 33768,
      "sha256": "6bbcfa1beaab250bf51b79799e0667434db169b49d93c87f788bbe35a504f2f9",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wishlists.csv",
      "format": "csv",
      "table": "wishlists",
      "key": "datasets/e-commerce-logistics-insights/v4/csv/wishlists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/csv/wishlists.csv",
      "bytes": 32376,
      "sha256": "50bb5e8bd9c33d9b68353129f94bc8bdf0a734cdfdd4dcaa795cf9bdc681753a",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "e-commerce-logistics-insights.json",
      "format": "json",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/e-commerce-logistics-insights.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/e-commerce-logistics-insights.json",
      "bytes": 309180,
      "sha256": "76afb8b3a90eb1970df800fd809a0d404637915c81344e9714c48cb846977722",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/sql/postgres.sql",
      "bytes": 151604,
      "sha256": "dbfed3d423a75d58677fa4d5a0948c728fb18e9467ceb42d9d7b5b184cde266a",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/sql/mysql.sql",
      "bytes": 151038,
      "sha256": "88b98b5a5b932c21b11fff1ba0df15f624d9be9d1b24b939076afb9807a89380",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/sql/mssql.sql",
      "bytes": 155732,
      "sha256": "fecd1d6db746a71772ebd64458aeb79c913153a12768822b29a817aa4a0e72cf",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/sql/sqlite.sql",
      "bytes": 150820,
      "sha256": "8c3127a2e84d24debb95cc3125ecbef76f9b72f82e4998b9db1dbaeed64fbc34",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/prisma/seed.ts",
      "bytes": 265170,
      "sha256": "0c7433eb41b73357a21f9f66205fb75dc8d17b079c69d97c3b955f57b2fd9dc7",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/e-commerce-logistics-insights/v4/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/e-commerce-logistics-insights/v4/django/fixtures.json",
      "bytes": 380419,
      "sha256": "97347f1a0c3b9ae344dc20b47161e14722f592b9975c1d40fa3fde7e36586192",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767126471,
  "updatedAt": 1789095769371
}
