{
  "name": "Generate an e-commerce test dataset",
  "description": "Create 1,000 e-commerce orders with unique order IDs, customer names and emails, products, quantities, long-tailed prices and order dates. Use delivered, shipped, processing, returned and cancelled statuses with weights 78, 10, 5, 5 and 2. Leave about 12% of ratings missing. No AI-written reviews.",
  "rowCount": 1000,
  "seed": 991,
  "columns": [
    {
      "id": "col_order",
      "name": "Order ID",
      "kind": "sequence",
      "start": 100001,
      "prefix": "ORD-",
      "nullRate": 0
    },
    {
      "id": "col_customer",
      "name": "Customer",
      "kind": "faker",
      "generator": "person.fullName",
      "nullRate": 0
    },
    {
      "id": "col_email",
      "name": "Email",
      "kind": "faker",
      "generator": "contact.personalEmail",
      "nullRate": 0
    },
    {
      "id": "col_product",
      "name": "Product",
      "kind": "faker",
      "generator": "commerce.productName",
      "nullRate": 0
    },
    {
      "id": "col_category",
      "name": "Category",
      "kind": "faker",
      "generator": "commerce.department",
      "nullRate": 0
    },
    {
      "id": "col_qty",
      "name": "Quantity",
      "kind": "integer",
      "min": 1,
      "max": 4,
      "nullRate": 0
    },
    {
      "id": "col_price",
      "name": "Unit price",
      "kind": "number",
      "min": 4,
      "max": 600,
      "decimals": 2,
      "distribution": "lognormal",
      "nullRate": 0
    },
    {
      "id": "col_date",
      "name": "Ordered at",
      "kind": "date",
      "start": "2025-01-01",
      "end": "2025-12-31",
      "format": "datetime",
      "nullRate": 0
    },
    {
      "id": "col_status",
      "name": "Status",
      "kind": "category",
      "options": [
        {
          "value": "delivered",
          "weight": 78
        },
        {
          "value": "shipped",
          "weight": 10
        },
        {
          "value": "processing",
          "weight": 5
        },
        {
          "value": "returned",
          "weight": 5
        },
        {
          "value": "cancelled",
          "weight": 2
        }
      ],
      "nullRate": 0
    },
    {
      "id": "col_rating",
      "name": "Rating",
      "kind": "category",
      "options": [
        {
          "value": "5",
          "weight": 50
        },
        {
          "value": "4",
          "weight": 25
        },
        {
          "value": "3",
          "weight": 10
        },
        {
          "value": "2",
          "weight": 7
        },
        {
          "value": "1",
          "weight": 8
        }
      ],
      "nullRate": 0.12
    }
  ],
  "relationships": [
    {
      "kind": "correlation",
      "a": "Unit price",
      "b": "Quantity",
      "strength": -0.3
    }
  ]
}
