{
  "id": "business-retail-commerce",
  "slug": "retail-commerce",
  "title": "Fieldnote Supply Shop",
  "industry": "retail",
  "description": "A six-product shop with linked customers, orders, order lines, captured payments and partial refunds.",
  "workflows": [
    "product-import",
    "order-reconciliation",
    "refunds",
    "variants",
    "discounts",
    "returns",
    "merchandising"
  ],
  "asOf": "2026-09-08",
  "source": "deterministic-synthetic",
  "tables": {
    "products": {
      "primaryKey": "product_id",
      "foreignKeys": [],
      "rows": [
        {
          "product_id": "PRD-01",
          "sku": "NVS-100",
          "name": "Canvas tote",
          "category": "Bags",
          "unit_price": 24,
          "unit_cost": 11.52,
          "stock": 30,
          "active": true
        },
        {
          "product_id": "PRD-02",
          "sku": "NVS-101",
          "name": "Ceramic mug",
          "category": "Home",
          "unit_price": 16,
          "unit_cost": 7.68,
          "stock": 37,
          "active": true
        },
        {
          "product_id": "PRD-03",
          "sku": "NVS-102",
          "name": "Pocket notebook",
          "category": "Stationery",
          "unit_price": 8,
          "unit_cost": 3.84,
          "stock": 44,
          "active": true
        },
        {
          "product_id": "PRD-04",
          "sku": "NVS-103",
          "name": "Desk organizer",
          "category": "Home",
          "unit_price": 32,
          "unit_cost": 15.36,
          "stock": 51,
          "active": true
        },
        {
          "product_id": "PRD-05",
          "sku": "NVS-104",
          "name": "Linen pouch",
          "category": "Bags",
          "unit_price": 18,
          "unit_cost": 8.64,
          "stock": 58,
          "active": true
        },
        {
          "product_id": "PRD-06",
          "sku": "NVS-105",
          "name": "Weekly planner",
          "category": "Stationery",
          "unit_price": 21,
          "unit_cost": 10.08,
          "stock": 65,
          "active": true
        }
      ]
    },
    "customers": {
      "primaryKey": "customer_id",
      "foreignKeys": [],
      "rows": [
        {
          "customer_id": "CUS-01",
          "name": "Sample customer 1",
          "email": "shopper1@example.test"
        },
        {
          "customer_id": "CUS-02",
          "name": "Sample customer 2",
          "email": "shopper2@example.test"
        },
        {
          "customer_id": "CUS-03",
          "name": "Sample customer 3",
          "email": "shopper3@example.test"
        },
        {
          "customer_id": "CUS-04",
          "name": "Sample customer 4",
          "email": "shopper4@example.test"
        },
        {
          "customer_id": "CUS-05",
          "name": "Sample customer 5",
          "email": "shopper5@example.test"
        },
        {
          "customer_id": "CUS-06",
          "name": "Sample customer 6",
          "email": "shopper6@example.test"
        }
      ]
    },
    "orders": {
      "primaryKey": "order_id",
      "foreignKeys": [
        {
          "column": "customer_id",
          "table": "customers",
          "targetColumn": "customer_id"
        }
      ],
      "rows": [
        {
          "order_id": "ORD-001",
          "date": "2026-08-01",
          "customer_id": "CUS-01",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-002",
          "date": "2026-08-02",
          "customer_id": "CUS-02",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-003",
          "date": "2026-08-03",
          "customer_id": "CUS-03",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-004",
          "date": "2026-08-04",
          "customer_id": "CUS-04",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-005",
          "date": "2026-08-05",
          "customer_id": "CUS-05",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-006",
          "date": "2026-08-06",
          "customer_id": "CUS-06",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-007",
          "date": "2026-08-07",
          "customer_id": "CUS-01",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-008",
          "date": "2026-08-08",
          "customer_id": "CUS-02",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-009",
          "date": "2026-08-09",
          "customer_id": "CUS-03",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-010",
          "date": "2026-08-10",
          "customer_id": "CUS-04",
          "status": "fulfilled",
          "currency": "USD"
        },
        {
          "order_id": "ORD-011",
          "date": "2026-08-11",
          "customer_id": "CUS-05",
          "status": "processing",
          "currency": "USD"
        },
        {
          "order_id": "ORD-012",
          "date": "2026-08-12",
          "customer_id": "CUS-06",
          "status": "processing",
          "currency": "USD"
        }
      ]
    },
    "order_lines": {
      "primaryKey": "line_id",
      "foreignKeys": [
        {
          "column": "order_id",
          "table": "orders",
          "targetColumn": "order_id"
        },
        {
          "column": "product_id",
          "table": "products",
          "targetColumn": "product_id"
        },
        {
          "column": "variant_id",
          "table": "variants",
          "targetColumn": "variant_id"
        }
      ],
      "rows": [
        {
          "line_id": "LINE-001",
          "order_id": "ORD-001",
          "product_id": "PRD-01",
          "quantity": 1,
          "unit_price": 24,
          "line_total": 24,
          "variant_id": "VAR-01"
        },
        {
          "line_id": "LINE-002",
          "order_id": "ORD-001",
          "product_id": "PRD-02",
          "quantity": 1,
          "unit_price": 16,
          "line_total": 16,
          "variant_id": "VAR-04"
        },
        {
          "line_id": "LINE-003",
          "order_id": "ORD-002",
          "product_id": "PRD-02",
          "quantity": 2,
          "unit_price": 16,
          "line_total": 32,
          "variant_id": "VAR-03"
        },
        {
          "line_id": "LINE-004",
          "order_id": "ORD-002",
          "product_id": "PRD-03",
          "quantity": 2,
          "unit_price": 8,
          "line_total": 16,
          "variant_id": "VAR-06"
        },
        {
          "line_id": "LINE-005",
          "order_id": "ORD-003",
          "product_id": "PRD-03",
          "quantity": 3,
          "unit_price": 8,
          "line_total": 24,
          "variant_id": "VAR-05"
        },
        {
          "line_id": "LINE-006",
          "order_id": "ORD-003",
          "product_id": "PRD-04",
          "quantity": 3,
          "unit_price": 32,
          "line_total": 96,
          "variant_id": "VAR-08"
        },
        {
          "line_id": "LINE-007",
          "order_id": "ORD-004",
          "product_id": "PRD-04",
          "quantity": 1,
          "unit_price": 32,
          "line_total": 32,
          "variant_id": "VAR-07"
        },
        {
          "line_id": "LINE-008",
          "order_id": "ORD-004",
          "product_id": "PRD-05",
          "quantity": 1,
          "unit_price": 18,
          "line_total": 18,
          "variant_id": "VAR-10"
        },
        {
          "line_id": "LINE-009",
          "order_id": "ORD-005",
          "product_id": "PRD-05",
          "quantity": 2,
          "unit_price": 18,
          "line_total": 36,
          "variant_id": "VAR-09"
        },
        {
          "line_id": "LINE-010",
          "order_id": "ORD-005",
          "product_id": "PRD-06",
          "quantity": 2,
          "unit_price": 21,
          "line_total": 42,
          "variant_id": "VAR-12"
        },
        {
          "line_id": "LINE-011",
          "order_id": "ORD-006",
          "product_id": "PRD-06",
          "quantity": 3,
          "unit_price": 21,
          "line_total": 63,
          "variant_id": "VAR-11"
        },
        {
          "line_id": "LINE-012",
          "order_id": "ORD-006",
          "product_id": "PRD-01",
          "quantity": 3,
          "unit_price": 24,
          "line_total": 72,
          "variant_id": "VAR-02"
        },
        {
          "line_id": "LINE-013",
          "order_id": "ORD-007",
          "product_id": "PRD-01",
          "quantity": 1,
          "unit_price": 24,
          "line_total": 24,
          "variant_id": "VAR-01"
        },
        {
          "line_id": "LINE-014",
          "order_id": "ORD-007",
          "product_id": "PRD-02",
          "quantity": 1,
          "unit_price": 16,
          "line_total": 16,
          "variant_id": "VAR-04"
        },
        {
          "line_id": "LINE-015",
          "order_id": "ORD-008",
          "product_id": "PRD-02",
          "quantity": 2,
          "unit_price": 16,
          "line_total": 32,
          "variant_id": "VAR-03"
        },
        {
          "line_id": "LINE-016",
          "order_id": "ORD-008",
          "product_id": "PRD-03",
          "quantity": 2,
          "unit_price": 8,
          "line_total": 16,
          "variant_id": "VAR-06"
        },
        {
          "line_id": "LINE-017",
          "order_id": "ORD-009",
          "product_id": "PRD-03",
          "quantity": 3,
          "unit_price": 8,
          "line_total": 24,
          "variant_id": "VAR-05"
        },
        {
          "line_id": "LINE-018",
          "order_id": "ORD-009",
          "product_id": "PRD-04",
          "quantity": 3,
          "unit_price": 32,
          "line_total": 96,
          "variant_id": "VAR-08"
        },
        {
          "line_id": "LINE-019",
          "order_id": "ORD-010",
          "product_id": "PRD-04",
          "quantity": 1,
          "unit_price": 32,
          "line_total": 32,
          "variant_id": "VAR-07"
        },
        {
          "line_id": "LINE-020",
          "order_id": "ORD-010",
          "product_id": "PRD-05",
          "quantity": 1,
          "unit_price": 18,
          "line_total": 18,
          "variant_id": "VAR-10"
        },
        {
          "line_id": "LINE-021",
          "order_id": "ORD-011",
          "product_id": "PRD-05",
          "quantity": 2,
          "unit_price": 18,
          "line_total": 36,
          "variant_id": "VAR-09"
        },
        {
          "line_id": "LINE-022",
          "order_id": "ORD-011",
          "product_id": "PRD-06",
          "quantity": 2,
          "unit_price": 21,
          "line_total": 42,
          "variant_id": "VAR-12"
        },
        {
          "line_id": "LINE-023",
          "order_id": "ORD-012",
          "product_id": "PRD-06",
          "quantity": 3,
          "unit_price": 21,
          "line_total": 63,
          "variant_id": "VAR-11"
        },
        {
          "line_id": "LINE-024",
          "order_id": "ORD-012",
          "product_id": "PRD-01",
          "quantity": 3,
          "unit_price": 24,
          "line_total": 72,
          "variant_id": "VAR-02"
        }
      ]
    },
    "payments": {
      "primaryKey": "payment_id",
      "foreignKeys": [
        {
          "column": "order_id",
          "table": "orders",
          "targetColumn": "order_id"
        }
      ],
      "rows": [
        {
          "payment_id": "PAY-001",
          "order_id": "ORD-001",
          "amount": 35,
          "refunded": 24,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-002",
          "order_id": "ORD-002",
          "amount": 48,
          "refunded": 16,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-003",
          "order_id": "ORD-003",
          "amount": 120,
          "refunded": 8,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-004",
          "order_id": "ORD-004",
          "amount": 45,
          "refunded": 32,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-005",
          "order_id": "ORD-005",
          "amount": 78,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-006",
          "order_id": "ORD-006",
          "amount": 135,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-007",
          "order_id": "ORD-007",
          "amount": 35,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-008",
          "order_id": "ORD-008",
          "amount": 48,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-009",
          "order_id": "ORD-009",
          "amount": 120,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-010",
          "order_id": "ORD-010",
          "amount": 45,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-011",
          "order_id": "ORD-011",
          "amount": 78,
          "refunded": 0,
          "currency": "USD"
        },
        {
          "payment_id": "PAY-012",
          "order_id": "ORD-012",
          "amount": 135,
          "refunded": 0,
          "currency": "USD"
        }
      ]
    },
    "variants": {
      "primaryKey": "variant_id",
      "foreignKeys": [
        {
          "column": "product_id",
          "table": "products",
          "targetColumn": "product_id"
        }
      ],
      "rows": [
        {
          "variant_id": "VAR-01",
          "product_id": "PRD-01",
          "sku": "NVS-100-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 15,
          "unit_price": 24
        },
        {
          "variant_id": "VAR-02",
          "product_id": "PRD-01",
          "sku": "NVS-100-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 15,
          "unit_price": 24
        },
        {
          "variant_id": "VAR-03",
          "product_id": "PRD-02",
          "sku": "NVS-101-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 18,
          "unit_price": 16
        },
        {
          "variant_id": "VAR-04",
          "product_id": "PRD-02",
          "sku": "NVS-101-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 19,
          "unit_price": 16
        },
        {
          "variant_id": "VAR-05",
          "product_id": "PRD-03",
          "sku": "NVS-102-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 22,
          "unit_price": 8
        },
        {
          "variant_id": "VAR-06",
          "product_id": "PRD-03",
          "sku": "NVS-102-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 22,
          "unit_price": 8
        },
        {
          "variant_id": "VAR-07",
          "product_id": "PRD-04",
          "sku": "NVS-103-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 25,
          "unit_price": 32
        },
        {
          "variant_id": "VAR-08",
          "product_id": "PRD-04",
          "sku": "NVS-103-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 26,
          "unit_price": 32
        },
        {
          "variant_id": "VAR-09",
          "product_id": "PRD-05",
          "sku": "NVS-104-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 29,
          "unit_price": 18
        },
        {
          "variant_id": "VAR-10",
          "product_id": "PRD-05",
          "sku": "NVS-104-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 29,
          "unit_price": 18
        },
        {
          "variant_id": "VAR-11",
          "product_id": "PRD-06",
          "sku": "NVS-105-Natural",
          "option_name": "Finish",
          "option_value": "Natural",
          "stock": 32,
          "unit_price": 21
        },
        {
          "variant_id": "VAR-12",
          "product_id": "PRD-06",
          "sku": "NVS-105-Charcoal",
          "option_name": "Finish",
          "option_value": "Charcoal",
          "stock": 33,
          "unit_price": 21
        }
      ]
    },
    "discounts": {
      "primaryKey": "discount_id",
      "foreignKeys": [
        {
          "column": "order_id",
          "table": "orders",
          "targetColumn": "order_id"
        }
      ],
      "rows": [
        {
          "discount_id": "DISC-1",
          "order_id": "ORD-001",
          "code": "SAMPLE5",
          "amount": 5,
          "currency": "USD"
        },
        {
          "discount_id": "DISC-2",
          "order_id": "ORD-004",
          "code": "SAMPLE5",
          "amount": 5,
          "currency": "USD"
        },
        {
          "discount_id": "DISC-3",
          "order_id": "ORD-007",
          "code": "SAMPLE5",
          "amount": 5,
          "currency": "USD"
        },
        {
          "discount_id": "DISC-4",
          "order_id": "ORD-010",
          "code": "SAMPLE5",
          "amount": 5,
          "currency": "USD"
        }
      ]
    },
    "returns": {
      "primaryKey": "return_id",
      "foreignKeys": [
        {
          "column": "line_id",
          "table": "order_lines",
          "targetColumn": "line_id"
        }
      ],
      "rows": [
        {
          "return_id": "RETURN-1",
          "line_id": "LINE-001",
          "quantity": 1,
          "refund_amount": 24,
          "reason": "Changed preference",
          "restock": true
        },
        {
          "return_id": "RETURN-2",
          "line_id": "LINE-003",
          "quantity": 1,
          "refund_amount": 16,
          "reason": "Changed preference",
          "restock": true
        },
        {
          "return_id": "RETURN-3",
          "line_id": "LINE-005",
          "quantity": 1,
          "refund_amount": 8,
          "reason": "Changed preference",
          "restock": true
        },
        {
          "return_id": "RETURN-4",
          "line_id": "LINE-007",
          "quantity": 1,
          "refund_amount": 32,
          "reason": "Changed preference",
          "restock": true
        }
      ]
    },
    "merchandising": {
      "primaryKey": "placement_id",
      "foreignKeys": [
        {
          "column": "product_id",
          "table": "products",
          "targetColumn": "product_id"
        }
      ],
      "rows": [
        {
          "placement_id": "PLACE-1",
          "product_id": "PRD-01",
          "collection": "Desk and daily carry",
          "display_order": 1,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        },
        {
          "placement_id": "PLACE-2",
          "product_id": "PRD-02",
          "collection": "Desk and daily carry",
          "display_order": 2,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        },
        {
          "placement_id": "PLACE-3",
          "product_id": "PRD-03",
          "collection": "Desk and daily carry",
          "display_order": 3,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        },
        {
          "placement_id": "PLACE-4",
          "product_id": "PRD-04",
          "collection": "Desk and daily carry",
          "display_order": 4,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        },
        {
          "placement_id": "PLACE-5",
          "product_id": "PRD-05",
          "collection": "Desk and daily carry",
          "display_order": 5,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        },
        {
          "placement_id": "PLACE-6",
          "product_id": "PRD-06",
          "collection": "Desk and daily carry",
          "display_order": 6,
          "start_date": "2026-08-01",
          "end_date": "2026-08-31"
        }
      ]
    }
  },
  "metrics": [
    {
      "id": "order_lines-line_total",
      "label": "Gross item sales",
      "value": 942.0,
      "unit": "USD",
      "calculation": "Sum order_lines.line_total over the included records.",
      "formula": {
        "op": "sum",
        "table": "order_lines",
        "column": "line_total"
      }
    },
    {
      "id": "payments-refunded",
      "label": "Refunded amount",
      "value": 80.0,
      "unit": "USD",
      "calculation": "Sum payments.refunded over the included records.",
      "formula": {
        "op": "sum",
        "table": "payments",
        "column": "refunded"
      }
    },
    {
      "id": "orders-count",
      "label": "Orders",
      "value": 12.0,
      "unit": "records",
      "calculation": "Count unique order_id values in orders.",
      "formula": {
        "op": "count",
        "table": "orders"
      }
    }
  ],
  "chart": {
    "title": "Order values",
    "unit": "USD",
    "points": [
      {
        "label": "ORD-001",
        "value": 35
      },
      {
        "label": "ORD-002",
        "value": 48
      },
      {
        "label": "ORD-003",
        "value": 120
      },
      {
        "label": "ORD-004",
        "value": 45
      },
      {
        "label": "ORD-005",
        "value": 78
      },
      {
        "label": "ORD-006",
        "value": 135
      },
      {
        "label": "ORD-007",
        "value": 35
      },
      {
        "label": "ORD-008",
        "value": 48
      },
      {
        "label": "ORD-009",
        "value": 120
      },
      {
        "label": "ORD-010",
        "value": 45
      },
      {
        "label": "ORD-011",
        "value": 78
      },
      {
        "label": "ORD-012",
        "value": 135
      }
    ]
  },
  "notes": [
    "Products use USD amounts. Vendor profiles describe tested file specifications, not completed account imports."
  ]
}
