{
  "format": "dataset-manifest/1",
  "slug": "blockchain-based-secure-e-commerce-transactions",
  "version": 1,
  "seed": "blockchain-based-secure-e-commerce-transactions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "blockchain-based-secure-e-commerce-transactions",
    "name": "Secure E-Commerce Transactions",
    "tagline": "E-commerce transactions including customers, orders, products, shipments, and reviews for secure online shopping.",
    "description": "Consumers browse through an extensive online catalog, carefully selecting items while relying on secure transaction protocols to complete their purchases. This business thrives on ensuring that every customer interaction is smooth, from the moment they click 'buy' to the time the product arrives at their doorstep. The operations are driven by a variety of essential elements, including customer accounts, product listings, order processing, shipment tracking, and user reviews that provide feedback on the shopping experience. Each customer's journey is uniquely recorded, highlighting their preferences and behaviors as they navigate through various products, whether everyday essentials or luxury items.\n\nIn this dataset, the 'customers' table records individual shopper information, detailing their unique IDs, names, and contact details, while the 'products' table stores data on the items available for purchase, including product IDs, descriptions, and prices. The 'orders' table links customers to the products they select, capturing order IDs, the customer ID, product IDs, and transaction dates. This creates a clear relationship where each order is tied directly to a unique customer and one or more products.\n\nThe 'shipments' table tracks the fulfillment of orders, documenting shipment IDs, order IDs, and delivery statuses, allowing insights into logistics and efficiency. Finally, the 'reviews' table connects customers’ feedback to specific products, capturing ratings and comments that reflect customer satisfaction. This interconnected structure enables complex queries that reveal trends, such as which products are most frequently reviewed or which orders experience delays in shipment.\n\nThrough this synthetic dataset, developers can practice answering questions about customer purchasing behavior, order fulfillment efficiency, and product popularity. Analyzing these tables offers valuable insights into the e-commerce landscape, supporting a deeper understanding of consumer interactions and operational workflows.",
    "domain": "ecommerce",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "ecommerce",
      "transactions",
      "orders",
      "customers",
      "products",
      "reviews",
      "shipments",
      "coupons"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "customers": {
        "description": "Each row represents a customer in the e-commerce platform, linking to their orders and reviews.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each customer."
          },
          "full_name": {
            "kind": "fullName",
            "description": "Full name of the customer."
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "Email address of the customer."
          },
          "registration_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-01-01",
            "description": "Date when the customer registered."
          }
        }
      },
      "orders": {
        "description": "This table contains details of each order placed by customers, linking to customer information.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each order."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "ID of the customer who placed the order."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "dayProfile": "business",
            "description": "Date and time when the order was placed."
          },
          "total_amount": {
            "kind": "decimal",
            "min": 10,
            "max": 500,
            "scale": 2,
            "description": "Total amount for the order."
          },
          "coupon_code": {
            "kind": "words",
            "max": 10,
            "nullable": true,
            "description": "Optional coupon code used for the order."
          }
        }
      },
      "products": {
        "description": "Each row represents a product available for purchase, linking to orders and reviews.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "product_name": {
            "kind": "productName",
            "description": "Name of the product."
          },
          "category": {
            "kind": "enum",
            "values": [
              "everyday",
              "luxury"
            ],
            "description": "Category of the product."
          },
          "price": {
            "kind": "decimal",
            "min": 5,
            "max": 1000,
            "scale": 2,
            "description": "Price of the product."
          }
        }
      },
      "shipments": {
        "description": "Tracks the shipment details for each order, linking back to the orders table.",
        "rows": 600,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each shipment."
          },
          "order_id": {
            "kind": "fk",
            "ref": "orders.id",
            "description": "ID of the order being shipped."
          },
          "shipped_date": {
            "kind": "datetime",
            "after": "order_id.order_date",
            "withinDays": 10,
            "description": "Date when the order was shipped."
          },
          "delivery_status": {
            "kind": "enum",
            "values": [
              "pending",
              "shipped",
              "delivered",
              "returned"
            ],
            "description": "Current status of the shipment."
          }
        }
      },
      "reviews": {
        "description": "Captures customer reviews for products, linking back to both products and customers.",
        "rows": 400,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each review."
          },
          "customer_id": {
            "kind": "fk",
            "ref": "customers.id",
            "description": "ID of the customer who submitted the review."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "ID of the product being reviewed."
          },
          "rating": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Rating given by the customer."
          },
          "review_text": {
            "kind": "paragraph",
            "max": 500,
            "nullable": true,
            "description": "Optional text review provided by the customer."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "monetary"
    ],
    "analysisQuestions": [
      "What are the most popular product categories among customers?",
      "How does coupon usage affect the total amount of orders?",
      "What is the average shipping time for orders?",
      "How do customer ratings vary by product category?",
      "What delivery status is most commonly reported?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Orders and Customers",
        "sql": "SELECT orders.id, customers.full_name FROM orders JOIN customers ON orders.customer_id = customers.id;",
        "dialect": "postgres"
      },
      {
        "title": "Aggregate Total Amount by Customer",
        "sql": "SELECT customer_id, SUM(total_amount) AS total_spent FROM orders GROUP BY customer_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average Shipping Time",
        "sql": "SELECT AVG(shipped_date - order_id.order_date) AS average_shipping_time FROM shipments JOIN orders ON shipments.order_id = orders.id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Reviews by Product",
        "sql": "SELECT product_id, COUNT(*) AS review_count FROM reviews GROUP BY product_id;",
        "dialect": "postgres"
      },
      {
        "title": "Find High-Value Customers",
        "sql": "SELECT customer_id, SUM(total_amount) AS total_spent FROM orders GROUP BY customer_id HAVING total_spent > 1000;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "E-Commerce Analysis Tool",
        "body": "Data analysts at an e-commerce company can use this dataset to analyze customer purchasing patterns, order fulfillment times, and the impact of promotions on sales. By running queries, they can gain insights that help optimize marketing strategies and improve customer satisfaction."
      },
      {
        "title": "ORM Seeding for E-Commerce Applications",
        "body": "Developers working on e-commerce applications can use this synthetic dataset to seed their databases with realistic data. This enables them to test various functionalities such as order processing, customer feedback, and shipment tracking in a controlled environment."
      },
      {
        "title": "Customer Experience Research",
        "body": "Researchers studying consumer behavior can leverage this dataset to investigate how factors like product category and coupon use affect customer satisfaction and purchasing decisions. The insights gained can inform better product offerings and promotional strategies."
      },
      {
        "title": "Logistics and Supply Chain Management",
        "body": "Logistics managers can analyze shipment data to identify bottlenecks in the delivery process. By assessing average shipping times and delivery statuses, they can improve operational efficiency and enhance the overall customer experience."
      }
    ]
  },
  "counts": {
    "customers": 200,
    "orders": 600,
    "products": 300,
    "reviews": 400,
    "shipments": 600
  },
  "stats": {
    "customers": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 0,
          "distinct": 197,
          "min": "Alice Costa",
          "max": "Zoe Young"
        },
        "email": {
          "nulls": 0,
          "distinct": 199
        },
        "registration_date": {
          "nulls": 0,
          "distinct": 180,
          "min": "2020-01-01",
          "max": "2022-12-29"
        }
      }
    },
    "orders": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 196,
          "min": 1,
          "max": 200
        },
        "order_date": {
          "nulls": 0,
          "distinct": 600,
          "min": "2023-01-01 09:03:51",
          "max": "2023-12-30 16:38:33"
        },
        "total_amount": {
          "nulls": 0,
          "distinct": 598,
          "min": 11.35,
          "max": 499.59
        },
        "coupon_code": {
          "nulls": 63,
          "distinct": 537
        }
      }
    },
    "products": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "product_name": {
          "nulls": 0,
          "distinct": 224,
          "min": "Classic Bottle",
          "max": "Wireless Umbrella"
        },
        "category": {
          "nulls": 0,
          "distinct": 2,
          "min": "everyday",
          "max": "luxury"
        },
        "price": {
          "nulls": 0,
          "distinct": 300,
          "min": 13.82,
          "max": 994.47
        }
      }
    },
    "shipments": {
      "rows": 600,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 600,
          "min": 1,
          "max": 600
        },
        "order_id": {
          "nulls": 0,
          "distinct": 388,
          "min": 1,
          "max": 600
        },
        "shipped_date": {
          "nulls": 0,
          "distinct": 600,
          "min": "2023-01-05 12:56:27",
          "max": "2024-01-07 22:07:13"
        },
        "delivery_status": {
          "nulls": 0,
          "distinct": 4,
          "min": "delivered",
          "max": "shipped"
        }
      }
    },
    "reviews": {
      "rows": 400,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 400,
          "min": 1,
          "max": 400
        },
        "customer_id": {
          "nulls": 0,
          "distinct": 178,
          "min": 1,
          "max": 200
        },
        "product_id": {
          "nulls": 0,
          "distinct": 223,
          "min": 1,
          "max": 300
        },
        "rating": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        },
        "review_text": {
          "nulls": 40,
          "distinct": 360
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/customers.csv",
      "format": "csv",
      "table": "customers",
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/customers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/customers.csv",
      "bytes": 10396,
      "sha256": "223ccc1e470e939b602abdcce5c7a2b4f64ab385a68826dc957572c75ebb349c",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/orders.csv",
      "bytes": 42675,
      "sha256": "bf85baee66f01d136e0e82d8c3713c3c24269e8443ab67388b3b735285ca1dd2",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/products.csv",
      "bytes": 10414,
      "sha256": "542aa1bc61f637f4527964b9748128729009698df15b66b684ce1e881bc2a9da",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/reviews.csv",
      "format": "csv",
      "table": "reviews",
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/reviews.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/reviews.csv",
      "bytes": 65920,
      "sha256": "4cc38df31c63d51cf09d8ea0f4117a5de7cd13c599f73b2fdc3ca5359c5882fd",
      "rows": 400,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/shipments.csv",
      "format": "csv",
      "table": "shipments",
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/shipments.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/csv/shipments.csv",
      "bytes": 22468,
      "sha256": "b400224804fe23314c7edbccecbfb75d5b6db8b53dab9633a6dc97af4f66ffd6",
      "rows": 600,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "blockchain-based-secure-e-commerce-transactions.json",
      "format": "json",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/blockchain-based-secure-e-commerce-transactions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/blockchain-based-secure-e-commerce-transactions.json",
      "bytes": 366474,
      "sha256": "0c966e77e7003ad16655eebc016458ec331786dff7f0c7d66f47eb1f3fde6eb6",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/postgres.sql",
      "bytes": 182718,
      "sha256": "a15d5449996581cac563533dad12734c762f7ec30f80d164057355313febab71",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/mysql.sql",
      "bytes": 182167,
      "sha256": "eb7d90f119a7e6150a77142b46b1d2142a3ac4a088f5b44678b9bb0c51b6814c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/mssql.sql",
      "bytes": 186384,
      "sha256": "73a8b0e0b4ab0554f348079befc778e87cd0ab56c742a2ac93875efef0998129",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/sql/sqlite.sql",
      "bytes": 181984,
      "sha256": "c6ea6168f3cca072806c8319e30ca5d988b0baec61aa893dc6568474391ab75e",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/prisma/seed.ts",
      "bytes": 315907,
      "sha256": "1c9c72a4aa1c7ee896753fc34fa20ff3a2e874486485cbf3e764435eaee66132",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/blockchain-based-secure-e-commerce-transactions/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/blockchain-based-secure-e-commerce-transactions/v1/django/fixtures.json",
      "bytes": 455098,
      "sha256": "d81538aff95ed79df9a606b792e1cc4b1ca6f87e9dc9fc20c7806e71e4654f5f",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767934405,
  "updatedAt": 1788767934405
}
