{
  "format": "dataset-manifest/1",
  "slug": "ecommerce-transactions-overview",
  "version": 1,
  "seed": "ecommerce-transactions-overview:1",
  "spec": {
    "format": "dataset/1",
    "slug": "ecommerce-transactions-overview",
    "name": "Ecommerce Transactions Overview",
    "tagline": "Customer interactions, wishlists, carts, and orders in an online retail environment.",
    "description": "Customers browse through numerous products, assessing their preferences and making purchasing decisions based on various influences. They explore wishlists to save items for future consideration, add products to their carts, and eventually finalize their purchases through orders. This dataset captures the intricate dance between user interactions and product selections within an online retail environment, shedding light on customer behavior and preferences. \n\nThe tables within this dataset connect in meaningful ways: Each row in the customers table represents an individual shopper with unique characteristics, while the products table contains details about the various items available for purchase. The wishlists table tracks products that customers have expressed interest in but have not yet purchased, while the carts table reflects items that customers have considered buying but have not finalized. Finally, the orders table records successful transactions that have been completed. These relationships enable analysis of customer journeys from initial interest to final purchase, highlighting the various touchpoints along the way. \n\nThis dataset allows developers to explore questions such as: What are the most popular product categories? How do seasonal marketing campaigns influence order volume? What is the correlation between wishlist activity and completed purchases? Understanding these dynamics can provide valuable insights into consumer behavior and eCommerce strategies. Additionally, observing the use of discounts and payment methods opens avenues for exploring customer engagement and satisfaction. \n\nPlease note that the data in this dataset is synthetic, constructed to simulate real-world scenarios in eCommerce, offering a rich environment for practice and analysis.",
    "domain": "ecommerce",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "ecommerce",
      "transactions",
      "customers",
      "products",
      "wishlists",
      "carts",
      "orders",
      "analytics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "This table contains records of customers, including their demographic information. Each customer can have multiple orders and wishlist items.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the customer."
          },
          "first_name": {
            "kind": "firstName",
            "description": "The customer's first name."
          },
          "last_name": {
            "kind": "lastName",
            "description": "The customer's last name."
          },
          "email": {
            "kind": "email",
            "from": [
              "first_name",
              "last_name"
            ],
            "description": "The customer's email address."
          },
          "signup_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the customer signed up.",
            "trend": "growing"
          }
        }
      },
      "products": {
        "description": "This table records various products available for sale, including their categories and pricing.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the product."
          },
          "name": {
            "kind": "productName",
            "description": "The name of the product."
          },
          "category": {
            "kind": "enum",
            "values": [
              "Electronics",
              "Clothing",
              "Home",
              "Toys",
              "Books"
            ],
            "description": "Category of the product."
          },
          "price": {
            "kind": "decimal",
            "min": 5,
            "max": 500,
            "scale": 2,
            "description": "Price of the product."
          },
          "stock_quantity": {
            "kind": "int",
            "min": 0,
            "max": 1000,
            "description": "Number of items available in stock."
          }
        }
      },
      "wishlists": {
        "description": "This table captures customer wishlists, linking customers to products they are interested in.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the wishlist item."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer who created the wishlist."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Reference to the product in the wishlist."
          },
          "added_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the product was added to the wishlist.",
            "trend": "seasonal"
          }
        }
      },
      "carts": {
        "description": "This table logs items that customers have added to their shopping carts but have not yet purchased.",
        "rows": 250,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the cart item."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer who owns the cart."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Reference to the product in the cart."
          },
          "added_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the product was added to the cart.",
            "trend": "growing"
          }
        }
      },
      "orders": {
        "description": "This table records completed transactions made by customers, linking them to the purchased products.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the order."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "Reference to the customer who made the order."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "Reference to the product that was ordered."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date and time when the order was placed.",
            "dayProfile": "waking"
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Quantity of the product ordered."
          },
          "total_amount": {
            "kind": "decimal",
            "min": 5,
            "max": 5000,
            "scale": 2,
            "description": "Total amount for the order."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What are the most popular product categories?",
      "How do seasonal marketing campaigns affect sales?",
      "Which customers frequently use coupons?",
      "What time of day do customers place the most orders?",
      "How does wishlist activity correlate with actual purchases?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Customers with Orders",
        "sql": "SELECT customers.first_name, customers.last_name, orders.order_date FROM customers JOIN orders ON customers.id = orders.customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Orders by Product Category",
        "sql": "SELECT products.category, COUNT(orders.id) AS total_orders FROM orders JOIN products ON orders.product_id = products.id GROUP BY products.category;",
        "dialect": "postgres"
      },
      {
        "title": "Average Order Value Over Time",
        "sql": "SELECT DATE_TRUNC('month', orders.order_date) AS month, AVG(orders.total_amount) AS average_order_value FROM orders GROUP BY month ORDER BY month;",
        "dialect": "postgres"
      },
      {
        "title": "Top Customers by Total Spend",
        "sql": "SELECT customers.first_name, customers.last_name, SUM(orders.total_amount) AS total_spent FROM customers JOIN orders ON customers.id = orders.customer_id GROUP BY customers.id ORDER BY total_spent DESC LIMIT 10;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysts Exploring Consumer Trends",
        "body": "Data analysts can utilize this dataset to explore consumer trends in ecommerce by analyzing customer interactions across wishlists, carts, and completed orders. They can identify which products are frequently wished for but not purchased, allowing marketers to tailor promotional efforts."
      },
      {
        "title": "Developers Creating ORM Models",
        "body": "Developers can use this dataset as a basis for creating ORM models in their applications. By seeding their databases with this synthetic data, they can test features such as user authentication, product catalog management, and order processing without relying on real customer data."
      },
      {
        "title": "Business Intelligence Professionals Building Dashboards",
        "body": "Business intelligence professionals can leverage this dataset to build dashboards that visualize sales performance, customer behavior, and product trends. By connecting to BI tools, they can create dynamic reports that help stakeholders make informed decisions."
      },
      {
        "title": "Marketing Teams Analyzing Campaign Effectiveness",
        "body": "Marketing teams can analyze the impact of their campaigns by reviewing order data correlated with specific promotional periods. This dataset allows them to assess which products were most popular during sales events and adjust future strategies accordingly."
      }
    ]
  },
  "counts": {
    "customers": 200,
    "products": 150,
    "carts": 250,
    "orders": 500,
    "wishlists": 300
  },
  "stats": {
    "customers": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "first_name": {
          "nulls": 0,
          "distinct": 76,
          "min": "Alice",
          "max": "Zara"
        },
        "last_name": {
          "nulls": 0,
          "distinct": 74,
          "min": "Adams",
          "max": "Zhang"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "signup_date": {
          "nulls": 0,
          "distinct": 186,
          "min": "2020-01-18",
          "max": "2023-12-21"
        }
      }
    },
    "products": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 0,
          "distinct": 128,
          "min": "Classic Backpack",
          "max": "Wireless Watch"
        },
        "category": {
          "nulls": 0,
          "distinct": 5,
          "min": "Books",
          "max": "Toys"
        },
        "price": {
          "nulls": 0,
          "distinct": 150,
          "min": 6.42,
          "max": 499.3
        },
        "stock_quantity": {
          "nulls": 0,
          "distinct": 142,
          "min": 1,
          "max": 985
        }
      }
    },
    "wishlists": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 156,
          "min": 2,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 129,
          "min": 1,
          "max": 150
        },
        "added_date": {
          "nulls": 0,
          "distinct": 258,
          "min": "2020-01-02",
          "max": "2023-12-30"
        }
      }
    },
    "carts": {
      "rows": 250,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 250,
          "min": 1,
          "max": 250
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 137,
          "min": 1,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 128,
          "min": 1,
          "max": 150
        },
        "added_date": {
          "nulls": 0,
          "distinct": 230,
          "min": "2020-01-10",
          "max": "2023-12-31"
        }
      }
    },
    "orders": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 187,
          "min": 1,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 145,
          "min": 1,
          "max": 150
        },
        "order_date": {
          "nulls": 0,
          "distinct": 500,
          "min": "2020-01-06 15:21:24",
          "max": "2023-12-28 22:11:06"
        },
        "quantity": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "total_amount": {
          "nulls": 0,
          "distinct": 500,
          "min": 32.43,
          "max": 4996.76
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/ecommerce-transactions-overview/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/csv/customers.csv",
      "bytes": 10417,
      "sha256": "a62111a9383659b11ecec970feb6d1f6270b3fca0bf731ffb79e089845a41f97",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/ecommerce-transactions-overview/v1/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/csv/products.csv",
      "bytes": 5694,
      "sha256": "45bc99529b1a57f72b6dbd19aaf8b8809c082e4859ae0608d804647e8f461e92",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/carts.csv",
      "format": "csv",
      "table": "carts",
      "key": "datasets/ecommerce-transactions-overview/v1/csv/carts.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/csv/carts.csv",
      "bytes": 5619,
      "sha256": "c3d51bcf7c56fb70581fb73f3b2519d8e8ea55b1d56d5082aa61e1f3bb475d86",
      "rows": 250,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/ecommerce-transactions-overview/v1/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/csv/orders.csv",
      "bytes": 20728,
      "sha256": "d35c68148ed02ba5aaab84ff7b1a6412a32a54dfdb906b3a76483ae9f5cbd539",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/wishlists.csv",
      "format": "csv",
      "table": "wishlists",
      "key": "datasets/ecommerce-transactions-overview/v1/csv/wishlists.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/csv/wishlists.csv",
      "bytes": 6772,
      "sha256": "f3270db15dd484acc1037a48b09c1ace64b12387168019fccedc921c9517e615",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "ecommerce-transactions-overview.json",
      "format": "json",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/ecommerce-transactions-overview.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/ecommerce-transactions-overview.json",
      "bytes": 202174,
      "sha256": "b75fb021c5c5658d9bdd51c97f937d35339fa47f8bba13ec012711663c3949bb",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/sql/postgres.sql",
      "bytes": 70710,
      "sha256": "3775bab37ddc39ec44ed09245f8d6e48d26b11c468a1f8f804b149aa9afaf95d",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/sql/mysql.sql",
      "bytes": 70152,
      "sha256": "d38f8801e35148aec6a8b4f03ff0cc67a5733bcb26ef8cf39a72fe268982f529",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/sql/mssql.sql",
      "bytes": 72607,
      "sha256": "f8b4c44d99cf93f06cafb92f5f2acc37bbf15ecd16e4d1bbaed7c9c053d3110c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/sql/sqlite.sql",
      "bytes": 69941,
      "sha256": "5efe2460dcb26f6d1b1770ce6396a3509c70bdce5ff3132207bc875c29d7bb21",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/prisma/seed.ts",
      "bytes": 160010,
      "sha256": "73a5a1fb81a7e1c0594a224918b77b84666c947092f76f80db658b02463f6344",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/ecommerce-transactions-overview/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/ecommerce-transactions-overview/v1/django/fixtures.json",
      "bytes": 258015,
      "sha256": "068e33269194e055487e3a42f49b15c75ac83ca5aa03f568b78b8087215053c6",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768798907,
  "updatedAt": 1788768798907
}
