{
  "format": "dataset-manifest/1",
  "slug": "eco-friendly-product-transactions",
  "version": 2,
  "seed": "eco-friendly-product-transactions:1",
  "spec": {
    "format": "dataset/1",
    "slug": "eco-friendly-product-transactions",
    "name": "Eco-Friendly Product Transactions",
    "tagline": "Transactions, user behaviors, and product details from an eco-friendly fashion marketplace.",
    "description": "Eco-conscious consumers browse and purchase sustainable fashion products through a vibrant marketplace that prioritizes ethical consumption. Users explore various products, making decisions guided by their values and preferences for environmentally friendly materials. Each transaction sheds light on customer behaviors, with data reflecting interactions that span from product selection to final purchase, shipping logistics, and potential returns due to fit or satisfaction issues. This marketplace not only facilitates sales but also fosters a community that values transparency and sustainable practices.\n\nThe dataset consists of several interconnected tables: 'users' captures information about shoppers, including demographics and preferences that shape their buying decisions. 'products' provides detailed descriptions of the items available, including sizes, materials, and sustainability ratings. 'orders' records the transactions made by users, while 'order_items' breaks down individual products within each order, linking back to the products table. The 'returns' table tracks instances where products are sent back, allowing for analysis of trends in customer satisfaction and product performance. Lastly, 'shipping' details the logistical aspects of delivering products, crucial for understanding the efficiency of operations.\n\nWith this data, developers can answer a variety of questions, such as: What are the most popular products among eco-conscious consumers? How do return rates vary by product type or size? What shipping methods are preferred for timely deliveries? Analyzing these aspects aids in understanding user preferences, optimizing inventory, and improving customer experiences. This synthetic dataset offers a rich ground for practicing data manipulation, analysis, and visualization, allowing developers to simulate real-world e-commerce scenarios within a sustainable context.",
    "domain": "ecommerce",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "sustainable fashion",
      "eco-friendly",
      "transactions",
      "user behavior",
      "product details",
      "returns",
      "shipping logistics"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "users": {
        "description": "Each row represents a user in the marketplace, linking to their orders and preferences.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each user."
          },
          "full_name": {
            "kind": "fullName",
            "description": "The full name of the user.",
            "nullable": true
          },
          "email": {
            "kind": "email",
            "from": "full_name",
            "description": "The user's email address.",
            "nullable": true
          },
          "signup_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-10-01",
            "description": "Date when the user signed up.",
            "trend": "growing"
          },
          "preferences": {
            "kind": "json",
            "template": {
              "size": {
                "kind": "enum",
                "values": [
                  "S",
                  "M",
                  "L",
                  "XL"
                ]
              },
              "material": {
                "kind": "words",
                "max": 10
              }
            },
            "description": "User preferences for size and material.",
            "nullable": true
          }
        }
      },
      "products": {
        "description": "This table contains information about the products available in the marketplace, linking to orders and returns.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each product."
          },
          "name": {
            "kind": "productName",
            "description": "The name of the product."
          },
          "category": {
            "kind": "enum",
            "values": [
              "Clothing",
              "Accessories",
              "Footwear"
            ],
            "description": "The category of the product."
          },
          "material": {
            "kind": "words",
            "max": 3,
            "description": "Material(s) used in the product.",
            "nullable": true,
            "when": {
              "column": "category",
              "in": [
                "Clothing",
                "Accessories",
                "Footwear"
              ]
            },
            "pool": [
              "bamboo",
              "recycled",
              "organic",
              "biodegradable",
              "sustainable",
              "natural",
              "cotton",
              "jute",
              "hemp",
              "glass",
              "ceramic",
              "metal",
              "wood",
              "paper",
              "silicone",
              "linen",
              "plant",
              "corn",
              "soy",
              "rubber",
              "stone",
              "fabric",
              "fiber",
              "canvas",
              "composite",
              "polyester",
              "nylon",
              "vinyl",
              "latex",
              "aluminum",
              "steel",
              "cork",
              "bioplastic"
            ],
            "min": 1
          },
          "price": {
            "kind": "decimal",
            "min": 10,
            "max": 300,
            "scale": 2,
            "description": "Price of the product.",
            "distribution": "long-tail"
          },
          "stock_quantity": {
            "kind": "int",
            "min": 0,
            "max": 100,
            "description": "Available stock of the product."
          }
        }
      },
      "orders": {
        "description": "Each row represents an order made by a user, linking to the respective user and containing multiple order items.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each order."
          },
          "user_id": {
            "kind": "fk",
            "ref": "users.id",
            "description": "The user who made the order."
          },
          "order_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-10-01",
            "dayProfile": "business",
            "description": "Date and time when the order was placed."
          },
          "total_amount": {
            "kind": "decimal",
            "min": 10,
            "max": 3000,
            "scale": 2,
            "description": "Total amount of the order.",
            "nullable": true,
            "when": {
              "column": "status",
              "in": [
                "Shipped",
                "Delivered"
              ]
            },
            "distribution": "heavy-tail"
          },
          "status": {
            "kind": "enum",
            "values": [
              "Pending",
              "Shipped",
              "Delivered",
              "Returned"
            ],
            "description": "Current status of the order."
          }
        }
      },
      "order_items": {
        "description": "This table contains items within each order, linking to the respective order and product.",
        "rows": {
          "per": "orders",
          "via": "order_id",
          "min": 1,
          "max": 5,
          "skew": "long-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each order item."
          },
          "order_id": {
            "kind": "fk",
            "ref": "orders.id",
            "description": "The order this item belongs to."
          },
          "product_id": {
            "kind": "fk",
            "ref": "products.id",
            "description": "The product being ordered."
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 5,
            "description": "Quantity of the product ordered.",
            "distribution": "long-tail"
          }
        }
      },
      "returns": {
        "description": "This table records returns made by users, linking to the respective order and product.",
        "rows": {
          "per": "order_items",
          "via": "order_item_id",
          "min": 0,
          "max": 3,
          "skew": "heavy-tail"
        },
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each return."
          },
          "order_item_id": {
            "kind": "fk",
            "ref": "order_items.id",
            "description": "The order item being returned."
          },
          "return_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-10-01",
            "description": "Date when the return was initiated.",
            "dayProfile": "waking"
          },
          "reason": {
            "kind": "sentence",
            "description": "Reason for the return.",
            "nullable": true
          }
        }
      },
      "shipping": {
        "description": "This table contains shipping information for each order, linking to the respective order.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each shipping record."
          },
          "order_id": {
            "kind": "fk",
            "ref": "orders.id",
            "description": "The order this shipping record belongs to."
          },
          "shipping_date": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2023-10-01",
            "description": "Date when the order was shipped.",
            "dayProfile": "business"
          },
          "delivery_date": {
            "kind": "datetime",
            "after": "shipping_date",
            "withinDays": 10,
            "description": "Expected delivery date.",
            "nullable": true,
            "when": {
              "column": "shipping_method",
              "in": [
                "Standard",
                "Express",
                "Overnight"
              ]
            }
          },
          "shipping_method": {
            "kind": "enum",
            "values": [
              "Standard",
              "Express",
              "Overnight"
            ],
            "description": "Method used for shipping."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "timestamped",
      "categorical",
      "nullable",
      "high-cardinality"
    ],
    "analysisQuestions": [
      "What are the most common reasons for product returns?",
      "Which product categories generate the highest revenue?",
      "How do user preferences for size and material impact purchasing decisions?",
      "What is the average delivery time across different shipping methods?",
      "Are there specific times of the year when orders peak?"
    ],
    "suggestedQueries": [
      {
        "title": "Join Users with Orders",
        "sql": "SELECT users.full_name, orders.order_date FROM users JOIN orders ON users.id = orders.user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Count Orders by Status",
        "sql": "SELECT status, COUNT(*) FROM orders GROUP BY status;",
        "dialect": "postgres"
      },
      {
        "title": "Average Order Total by User",
        "sql": "SELECT user_id, AVG(total_amount) FROM orders GROUP BY user_id;",
        "dialect": "postgres"
      },
      {
        "title": "Retrieve Returns with Reasons",
        "sql": "SELECT returns.return_date, returns.reason FROM returns JOIN order_items ON returns.order_item_id = order_items.id;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "E-commerce Analysts",
        "body": "E-commerce analysts can use this dataset to explore purchasing patterns and return trends in the sustainable fashion market. By analyzing the data, they can gain insights into customer preferences and identify areas for improvement in product offerings and marketing strategies."
      },
      {
        "title": "Data Scientists",
        "body": "Data scientists can leverage this dataset to build predictive models for customer behavior, such as forecasting returns based on product features or user preferences. This can help the marketplace optimize inventory and enhance customer satisfaction."
      },
      {
        "title": "Developers",
        "body": "Developers can use the dataset for ORM seeding in applications that focus on sustainable fashion. By integrating this data into their applications, they can create realistic user scenarios and improve the overall user experience."
      },
      {
        "title": "Marketing Teams",
        "body": "Marketing teams can analyze user preferences and product performance to tailor their campaigns effectively. This dataset allows them to understand which products resonate with eco-conscious consumers and how to best reach their target audience."
      }
    ]
  },
  "counts": {
    "products": 150,
    "users": 200,
    "orders": 300,
    "order_items": 666,
    "returns": 468,
    "shipping": 300
  },
  "stats": {
    "users": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "full_name": {
          "nulls": 31,
          "distinct": 166,
          "min": "Alice Diaz",
          "max": "Zoe Kim"
        },
        "email": {
          "nulls": 48,
          "distinct": 150
        },
        "signup_date": {
          "nulls": 0,
          "distinct": 184,
          "min": "2020-01-04",
          "max": "2023-09-13"
        },
        "preferences": {
          "nulls": 17,
          "distinct": 183
        }
      }
    },
    "products": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "name": {
          "nulls": 0,
          "distinct": 126,
          "min": "Classic Bottle",
          "max": "Wireless Umbrella"
        },
        "category": {
          "nulls": 0,
          "distinct": 3,
          "min": "Accessories",
          "max": "Footwear"
        },
        "material": {
          "nulls": 0,
          "distinct": 122
        },
        "price": {
          "nulls": 0,
          "distinct": 150,
          "min": 10,
          "max": 297.61
        },
        "stock_quantity": {
          "nulls": 0,
          "distinct": 78,
          "min": 0,
          "max": 100
        }
      }
    },
    "orders": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "user_id": {
          "nulls": 0,
          "distinct": 160,
          "min": 1,
          "max": 200
        },
        "order_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2021-01-01 15:36:32",
          "max": "2023-09-29 10:01:13"
        },
        "total_amount": {
          "nulls": 153,
          "distinct": 144,
          "min": 10,
          "max": 2874.46
        },
        "status": {
          "nulls": 0,
          "distinct": 4,
          "min": "Delivered",
          "max": "Shipped"
        }
      }
    },
    "order_items": {
      "rows": 666,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 666,
          "min": 1,
          "max": 666
        },
        "order_id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "product_id": {
          "nulls": 0,
          "distinct": 146,
          "min": 1,
          "max": 150
        },
        "quantity": {
          "nulls": 0,
          "distinct": 5,
          "min": 1,
          "max": 5
        }
      }
    },
    "returns": {
      "rows": 468,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 468,
          "min": 1,
          "max": 468
        },
        "order_item_id": {
          "nulls": 0,
          "distinct": 253,
          "min": 1,
          "max": 663
        },
        "return_date": {
          "nulls": 0,
          "distinct": 468,
          "min": "2021-01-01 20:39:38",
          "max": "2023-09-30 13:24:47"
        },
        "reason": {
          "nulls": 36,
          "distinct": 431
        }
      }
    },
    "shipping": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "order_id": {
          "nulls": 0,
          "distinct": 199,
          "min": 3,
          "max": 300
        },
        "shipping_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2021-01-02 14:41:48",
          "max": "2023-09-20 12:59:23"
        },
        "delivery_date": {
          "nulls": 0,
          "distinct": 300,
          "min": "2021-01-04 03:01:49",
          "max": "2023-09-26 19:55:58"
        },
        "shipping_method": {
          "nulls": 0,
          "distinct": 3,
          "min": "Express",
          "max": "Standard"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/products.csv",
      "format": "csv",
      "table": "products",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/products.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/products.csv",
      "bytes": 7931,
      "sha256": "148b7e0befb3bf6abf0cb59cee47149d4f3d9b26d400ed94a47f353ff6a8ae7e",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/users.csv",
      "format": "csv",
      "table": "users",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/users.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/users.csv",
      "bytes": 22741,
      "sha256": "e94690a7b9523127659acc1fbb4eb0959408a0c5256529ac1d3375c878c05818",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/orders.csv",
      "format": "csv",
      "table": "orders",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/orders.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/orders.csv",
      "bytes": 12285,
      "sha256": "f0a86b92abaadf677ef4bfbcc81563fbe7d99a1d027a1766f6da43bafa871f80",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/order_items.csv",
      "format": "csv",
      "table": "order_items",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/order_items.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/order_items.csv",
      "bytes": 9232,
      "sha256": "e7d6382cfd412308d4078ec9e81692e9ab092724192afab50dfb6994d73c8ce2",
      "rows": 666,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/returns.csv",
      "format": "csv",
      "table": "returns",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/returns.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/returns.csv",
      "bytes": 37929,
      "sha256": "753e3e4e5f23d20941a26a63973d07102b6ad0a47bf5194f620d0e53450cd668",
      "rows": 468,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/shipping.csv",
      "format": "csv",
      "table": "shipping",
      "key": "datasets/eco-friendly-product-transactions/v2/csv/shipping.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/csv/shipping.csv",
      "bytes": 17263,
      "sha256": "7f6af4d83a3a7089884fad025d2a3c12ee004054da53f71e786d57bebf09a602",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "eco-friendly-product-transactions.json",
      "format": "json",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/eco-friendly-product-transactions.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/eco-friendly-product-transactions.json",
      "bytes": 318503,
      "sha256": "38a95591775d07f3e05e11f3ebc9fadc2f91431653a68d83f58120eac517990a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/sql/postgres.sql",
      "bytes": 137118,
      "sha256": "b8802f79f3965232aaeceff6335204ae20a8f18d334adff4df58f58e55b0d288",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/sql/mysql.sql",
      "bytes": 136452,
      "sha256": "e0ecf59db0e82162deb2b6d6d7fb023d3639137621aaa08715c90e5b981517ab",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/sql/mssql.sql",
      "bytes": 140395,
      "sha256": "3e632109862bcb223d4935c7ea0689874e8125a41d08ab4732a3ea1cd3a337eb",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/sql/sqlite.sql",
      "bytes": 136220,
      "sha256": "65ea88cdd6f8a891e3a15d0ba9b911e767e68ebfcf842bfcf5c7e6f8b2b9a166",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/prisma/seed.ts",
      "bytes": 263175,
      "sha256": "7276ccb1ef2082622260286a7cf8f3e64ab4d38548965c49b07f6adc20f86cf2",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/eco-friendly-product-transactions/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/eco-friendly-product-transactions/v2/django/fixtures.json",
      "bytes": 404849,
      "sha256": "797a939bd6b04c1813db375d22b08c9eca7e856880084ca7be3315fa6b05fa7b",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788768271023,
  "updatedAt": 1788778438863
}
