{
  "id": "business-inventory-manufacturing",
  "slug": "inventory-manufacturing",
  "title": "Pine Assembly Workshop",
  "industry": "manufacturing",
  "description": "A two-level assembly with shared screw consumption, purchase/issue movements and reconciled stock balances.",
  "workflows": [
    "bill-of-materials",
    "stock-movements",
    "reorder-planning",
    "procurement",
    "production-planning",
    "shipments",
    "delivery-exceptions"
  ],
  "asOf": "2026-09-08",
  "source": "deterministic-synthetic",
  "tables": {
    "parts": {
      "primaryKey": "part_id",
      "foreignKeys": [],
      "rows": [
        {
          "part_id": "DESK",
          "description": "Desktop kit",
          "unit_cost": 40,
          "opening": 20,
          "reorder_point": 8
        },
        {
          "part_id": "BASE",
          "description": "Base assembly",
          "unit_cost": 15,
          "opening": 30,
          "reorder_point": 10
        },
        {
          "part_id": "TOP",
          "description": "Top assembly",
          "unit_cost": 20,
          "opening": 25,
          "reorder_point": 10
        },
        {
          "part_id": "LEG",
          "description": "Leg",
          "unit_cost": 3,
          "opening": 100,
          "reorder_point": 24
        },
        {
          "part_id": "PANEL",
          "description": "Panel",
          "unit_cost": 12,
          "opening": 50,
          "reorder_point": 12
        },
        {
          "part_id": "SCREW",
          "description": "Screw",
          "unit_cost": 0.1,
          "opening": 500,
          "reorder_point": 100
        }
      ]
    },
    "bom": {
      "primaryKey": "bom_id",
      "foreignKeys": [
        {
          "column": "parent_id",
          "table": "parts",
          "targetColumn": "part_id"
        },
        {
          "column": "component_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "bom_id": "BOM-1",
          "parent_id": "DESK",
          "component_id": "BASE",
          "quantity": 1
        },
        {
          "bom_id": "BOM-2",
          "parent_id": "DESK",
          "component_id": "TOP",
          "quantity": 1
        },
        {
          "bom_id": "BOM-3",
          "parent_id": "BASE",
          "component_id": "LEG",
          "quantity": 4
        },
        {
          "bom_id": "BOM-4",
          "parent_id": "BASE",
          "component_id": "SCREW",
          "quantity": 8
        },
        {
          "bom_id": "BOM-5",
          "parent_id": "TOP",
          "component_id": "PANEL",
          "quantity": 1
        },
        {
          "bom_id": "BOM-6",
          "parent_id": "TOP",
          "component_id": "SCREW",
          "quantity": 4
        }
      ]
    },
    "movements": {
      "primaryKey": "movement_id",
      "foreignKeys": [
        {
          "column": "part_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "movement_id": "MOV-001",
          "part_id": "DESK",
          "date": "2026-08-01",
          "opening": 20,
          "received": 12,
          "issued": 2,
          "closing": 30
        },
        {
          "movement_id": "MOV-002",
          "part_id": "BASE",
          "date": "2026-08-02",
          "opening": 30,
          "received": 0,
          "issued": 3,
          "closing": 27
        },
        {
          "movement_id": "MOV-003",
          "part_id": "TOP",
          "date": "2026-08-03",
          "opening": 25,
          "received": 0,
          "issued": 4,
          "closing": 21
        },
        {
          "movement_id": "MOV-004",
          "part_id": "LEG",
          "date": "2026-08-04",
          "opening": 100,
          "received": 12,
          "issued": 2,
          "closing": 110
        },
        {
          "movement_id": "MOV-005",
          "part_id": "PANEL",
          "date": "2026-08-05",
          "opening": 50,
          "received": 0,
          "issued": 3,
          "closing": 47
        },
        {
          "movement_id": "MOV-006",
          "part_id": "SCREW",
          "date": "2026-08-06",
          "opening": 500,
          "received": 0,
          "issued": 4,
          "closing": 496
        },
        {
          "movement_id": "MOV-007",
          "part_id": "DESK",
          "date": "2026-08-07",
          "opening": 30,
          "received": 12,
          "issued": 2,
          "closing": 40
        },
        {
          "movement_id": "MOV-008",
          "part_id": "BASE",
          "date": "2026-08-08",
          "opening": 27,
          "received": 0,
          "issued": 3,
          "closing": 24
        },
        {
          "movement_id": "MOV-009",
          "part_id": "TOP",
          "date": "2026-08-09",
          "opening": 21,
          "received": 0,
          "issued": 4,
          "closing": 17
        },
        {
          "movement_id": "MOV-010",
          "part_id": "LEG",
          "date": "2026-08-10",
          "opening": 110,
          "received": 12,
          "issued": 2,
          "closing": 120
        },
        {
          "movement_id": "MOV-011",
          "part_id": "PANEL",
          "date": "2026-08-11",
          "opening": 47,
          "received": 0,
          "issued": 3,
          "closing": 44
        },
        {
          "movement_id": "MOV-012",
          "part_id": "SCREW",
          "date": "2026-08-12",
          "opening": 496,
          "received": 0,
          "issued": 4,
          "closing": 492
        },
        {
          "movement_id": "MOV-013",
          "part_id": "DESK",
          "date": "2026-08-13",
          "opening": 40,
          "received": 12,
          "issued": 2,
          "closing": 50
        },
        {
          "movement_id": "MOV-014",
          "part_id": "BASE",
          "date": "2026-08-14",
          "opening": 24,
          "received": 0,
          "issued": 3,
          "closing": 21
        },
        {
          "movement_id": "MOV-015",
          "part_id": "TOP",
          "date": "2026-08-15",
          "opening": 17,
          "received": 0,
          "issued": 4,
          "closing": 13
        },
        {
          "movement_id": "MOV-016",
          "part_id": "LEG",
          "date": "2026-08-16",
          "opening": 120,
          "received": 12,
          "issued": 2,
          "closing": 130
        },
        {
          "movement_id": "MOV-017",
          "part_id": "PANEL",
          "date": "2026-08-17",
          "opening": 44,
          "received": 0,
          "issued": 3,
          "closing": 41
        },
        {
          "movement_id": "MOV-018",
          "part_id": "SCREW",
          "date": "2026-08-18",
          "opening": 492,
          "received": 0,
          "issued": 4,
          "closing": 488
        },
        {
          "movement_id": "MOV-019",
          "part_id": "DESK",
          "date": "2026-08-19",
          "opening": 50,
          "received": 12,
          "issued": 2,
          "closing": 60
        },
        {
          "movement_id": "MOV-020",
          "part_id": "BASE",
          "date": "2026-08-20",
          "opening": 21,
          "received": 0,
          "issued": 3,
          "closing": 18
        },
        {
          "movement_id": "MOV-021",
          "part_id": "TOP",
          "date": "2026-08-21",
          "opening": 13,
          "received": 0,
          "issued": 4,
          "closing": 9
        },
        {
          "movement_id": "MOV-022",
          "part_id": "LEG",
          "date": "2026-08-22",
          "opening": 130,
          "received": 12,
          "issued": 2,
          "closing": 140
        },
        {
          "movement_id": "MOV-023",
          "part_id": "PANEL",
          "date": "2026-08-23",
          "opening": 41,
          "received": 0,
          "issued": 3,
          "closing": 38
        },
        {
          "movement_id": "MOV-024",
          "part_id": "SCREW",
          "date": "2026-08-24",
          "opening": 488,
          "received": 0,
          "issued": 4,
          "closing": 484
        }
      ]
    },
    "suppliers": {
      "primaryKey": "supplier_id",
      "foreignKeys": [],
      "rows": [
        {
          "supplier_id": "SUP-1",
          "name": "Pine Parts Supply"
        },
        {
          "supplier_id": "SUP-2",
          "name": "Harbour Components"
        }
      ]
    },
    "procurement": {
      "primaryKey": "purchase_order_id",
      "foreignKeys": [
        {
          "column": "supplier_id",
          "table": "suppliers",
          "targetColumn": "supplier_id"
        },
        {
          "column": "movement_id",
          "table": "movements",
          "targetColumn": "movement_id"
        },
        {
          "column": "part_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "purchase_order_id": "PO-1",
          "supplier_id": "SUP-1",
          "movement_id": "MOV-001",
          "part_id": "DESK",
          "quantity": 12,
          "unit_cost": 40,
          "amount": 480.0
        },
        {
          "purchase_order_id": "PO-2",
          "supplier_id": "SUP-2",
          "movement_id": "MOV-004",
          "part_id": "LEG",
          "quantity": 12,
          "unit_cost": 3,
          "amount": 36.0
        },
        {
          "purchase_order_id": "PO-3",
          "supplier_id": "SUP-1",
          "movement_id": "MOV-007",
          "part_id": "DESK",
          "quantity": 12,
          "unit_cost": 40,
          "amount": 480.0
        },
        {
          "purchase_order_id": "PO-4",
          "supplier_id": "SUP-2",
          "movement_id": "MOV-010",
          "part_id": "LEG",
          "quantity": 12,
          "unit_cost": 3,
          "amount": 36.0
        },
        {
          "purchase_order_id": "PO-5",
          "supplier_id": "SUP-1",
          "movement_id": "MOV-013",
          "part_id": "DESK",
          "quantity": 12,
          "unit_cost": 40,
          "amount": 480.0
        },
        {
          "purchase_order_id": "PO-6",
          "supplier_id": "SUP-2",
          "movement_id": "MOV-016",
          "part_id": "LEG",
          "quantity": 12,
          "unit_cost": 3,
          "amount": 36.0
        },
        {
          "purchase_order_id": "PO-7",
          "supplier_id": "SUP-1",
          "movement_id": "MOV-019",
          "part_id": "DESK",
          "quantity": 12,
          "unit_cost": 40,
          "amount": 480.0
        },
        {
          "purchase_order_id": "PO-8",
          "supplier_id": "SUP-2",
          "movement_id": "MOV-022",
          "part_id": "LEG",
          "quantity": 12,
          "unit_cost": 3,
          "amount": 36.0
        }
      ]
    },
    "production_orders": {
      "primaryKey": "production_id",
      "foreignKeys": [
        {
          "column": "part_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "production_id": "BUILD-1",
          "part_id": "DESK",
          "quantity": 2,
          "status": "planned",
          "due_date": "2026-09-10"
        },
        {
          "production_id": "BUILD-2",
          "part_id": "DESK",
          "quantity": 2,
          "status": "planned",
          "due_date": "2026-09-11"
        },
        {
          "production_id": "BUILD-3",
          "part_id": "DESK",
          "quantity": 2,
          "status": "planned",
          "due_date": "2026-09-12"
        },
        {
          "production_id": "BUILD-4",
          "part_id": "DESK",
          "quantity": 2,
          "status": "planned",
          "due_date": "2026-09-13"
        }
      ]
    },
    "material_requirements": {
      "primaryKey": "requirement_id",
      "foreignKeys": [
        {
          "column": "production_id",
          "table": "production_orders",
          "targetColumn": "production_id"
        },
        {
          "column": "part_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "requirement_id": "REQ-01",
          "production_id": "BUILD-1",
          "part_id": "LEG",
          "quantity": 8
        },
        {
          "requirement_id": "REQ-02",
          "production_id": "BUILD-1",
          "part_id": "PANEL",
          "quantity": 2
        },
        {
          "requirement_id": "REQ-03",
          "production_id": "BUILD-1",
          "part_id": "SCREW",
          "quantity": 24
        },
        {
          "requirement_id": "REQ-04",
          "production_id": "BUILD-2",
          "part_id": "LEG",
          "quantity": 8
        },
        {
          "requirement_id": "REQ-05",
          "production_id": "BUILD-2",
          "part_id": "PANEL",
          "quantity": 2
        },
        {
          "requirement_id": "REQ-06",
          "production_id": "BUILD-2",
          "part_id": "SCREW",
          "quantity": 24
        },
        {
          "requirement_id": "REQ-07",
          "production_id": "BUILD-3",
          "part_id": "LEG",
          "quantity": 8
        },
        {
          "requirement_id": "REQ-08",
          "production_id": "BUILD-3",
          "part_id": "PANEL",
          "quantity": 2
        },
        {
          "requirement_id": "REQ-09",
          "production_id": "BUILD-3",
          "part_id": "SCREW",
          "quantity": 24
        },
        {
          "requirement_id": "REQ-10",
          "production_id": "BUILD-4",
          "part_id": "LEG",
          "quantity": 8
        },
        {
          "requirement_id": "REQ-11",
          "production_id": "BUILD-4",
          "part_id": "PANEL",
          "quantity": 2
        },
        {
          "requirement_id": "REQ-12",
          "production_id": "BUILD-4",
          "part_id": "SCREW",
          "quantity": 24
        }
      ]
    },
    "routes": {
      "primaryKey": "route_id",
      "foreignKeys": [],
      "rows": [
        {
          "route_id": "ROUTE-1",
          "name": "North loop",
          "planned_km": 24,
          "vehicle_capacity": 30
        },
        {
          "route_id": "ROUTE-2",
          "name": "Harbour loop",
          "planned_km": 31,
          "vehicle_capacity": 30
        },
        {
          "route_id": "ROUTE-3",
          "name": "Market loop",
          "planned_km": 38,
          "vehicle_capacity": 30
        },
        {
          "route_id": "ROUTE-4",
          "name": "West loop",
          "planned_km": 45,
          "vehicle_capacity": 30
        }
      ]
    },
    "shipments": {
      "primaryKey": "shipment_id",
      "foreignKeys": [
        {
          "column": "route_id",
          "table": "routes",
          "targetColumn": "route_id"
        },
        {
          "column": "part_id",
          "table": "parts",
          "targetColumn": "part_id"
        }
      ],
      "rows": [
        {
          "shipment_id": "SHIP-01",
          "route_id": "ROUTE-1",
          "stop_number": 1,
          "parcels": 2,
          "status": "delivered",
          "delivered_parcels": 2,
          "planned_minutes": 12,
          "actual_minutes": 13,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-02",
          "route_id": "ROUTE-2",
          "stop_number": 1,
          "parcels": 3,
          "status": "delivered",
          "delivered_parcels": 3,
          "planned_minutes": 15,
          "actual_minutes": 16,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-03",
          "route_id": "ROUTE-3",
          "stop_number": 1,
          "parcels": 4,
          "status": "delivered",
          "delivered_parcels": 4,
          "planned_minutes": 18,
          "actual_minutes": 19,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-04",
          "route_id": "ROUTE-4",
          "stop_number": 1,
          "parcels": 5,
          "status": "delivered",
          "delivered_parcels": 5,
          "planned_minutes": 21,
          "actual_minutes": 22,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-05",
          "route_id": "ROUTE-1",
          "stop_number": 2,
          "parcels": 2,
          "status": "delivered",
          "delivered_parcels": 2,
          "planned_minutes": 24,
          "actual_minutes": 25,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-06",
          "route_id": "ROUTE-2",
          "stop_number": 2,
          "parcels": 3,
          "status": "delivered",
          "delivered_parcels": 3,
          "planned_minutes": 12,
          "actual_minutes": 13,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-07",
          "route_id": "ROUTE-3",
          "stop_number": 2,
          "parcels": 4,
          "status": "delivered",
          "delivered_parcels": 4,
          "planned_minutes": 15,
          "actual_minutes": 16,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-08",
          "route_id": "ROUTE-4",
          "stop_number": 2,
          "parcels": 5,
          "status": "delivered",
          "delivered_parcels": 5,
          "planned_minutes": 18,
          "actual_minutes": 19,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-09",
          "route_id": "ROUTE-1",
          "stop_number": 3,
          "parcels": 2,
          "status": "delivered",
          "delivered_parcels": 2,
          "planned_minutes": 21,
          "actual_minutes": 22,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-10",
          "route_id": "ROUTE-2",
          "stop_number": 3,
          "parcels": 3,
          "status": "delivered",
          "delivered_parcels": 3,
          "planned_minutes": 24,
          "actual_minutes": 25,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-11",
          "route_id": "ROUTE-3",
          "stop_number": 3,
          "parcels": 4,
          "status": "delivered",
          "delivered_parcels": 4,
          "planned_minutes": 12,
          "actual_minutes": 13,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-12",
          "route_id": "ROUTE-4",
          "stop_number": 3,
          "parcels": 5,
          "status": "delivered",
          "delivered_parcels": 5,
          "planned_minutes": 15,
          "actual_minutes": 16,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-13",
          "route_id": "ROUTE-1",
          "stop_number": 4,
          "parcels": 2,
          "status": "delivered",
          "delivered_parcels": 2,
          "planned_minutes": 18,
          "actual_minutes": 19,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-14",
          "route_id": "ROUTE-2",
          "stop_number": 4,
          "parcels": 3,
          "status": "in-transit",
          "delivered_parcels": 0,
          "planned_minutes": 21,
          "actual_minutes": 0,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-15",
          "route_id": "ROUTE-3",
          "stop_number": 4,
          "parcels": 4,
          "status": "in-transit",
          "delivered_parcels": 0,
          "planned_minutes": 24,
          "actual_minutes": 0,
          "part_id": "DESK"
        },
        {
          "shipment_id": "SHIP-16",
          "route_id": "ROUTE-4",
          "stop_number": 4,
          "parcels": 5,
          "status": "in-transit",
          "delivered_parcels": 0,
          "planned_minutes": 12,
          "actual_minutes": 0,
          "part_id": "DESK"
        }
      ]
    },
    "vehicles": {
      "primaryKey": "vehicle_id",
      "foreignKeys": [
        {
          "column": "route_id",
          "table": "routes",
          "targetColumn": "route_id"
        }
      ],
      "rows": [
        {
          "vehicle_id": "VAN-1",
          "route_id": "ROUTE-1",
          "capacity_parcels": 30,
          "fuel_litres": 2.64
        },
        {
          "vehicle_id": "VAN-2",
          "route_id": "ROUTE-2",
          "capacity_parcels": 30,
          "fuel_litres": 3.41
        },
        {
          "vehicle_id": "VAN-3",
          "route_id": "ROUTE-3",
          "capacity_parcels": 30,
          "fuel_litres": 4.18
        },
        {
          "vehicle_id": "VAN-4",
          "route_id": "ROUTE-4",
          "capacity_parcels": 30,
          "fuel_litres": 4.95
        }
      ]
    },
    "shipment_exceptions": {
      "primaryKey": "exception_id",
      "foreignKeys": [
        {
          "column": "shipment_id",
          "table": "shipments",
          "targetColumn": "shipment_id"
        }
      ],
      "rows": [
        {
          "exception_id": "EXC-1",
          "shipment_id": "SHIP-14",
          "reason": "Address confirmation",
          "status": "open"
        },
        {
          "exception_id": "EXC-2",
          "shipment_id": "SHIP-15",
          "reason": "Vehicle delay",
          "status": "open"
        },
        {
          "exception_id": "EXC-3",
          "shipment_id": "SHIP-16",
          "reason": "Receiving window",
          "status": "open"
        }
      ]
    }
  },
  "metrics": [
    {
      "id": "movements-received",
      "label": "Units received",
      "value": 96.0,
      "unit": "units",
      "calculation": "Sum movements.received over the included records.",
      "formula": {
        "op": "sum",
        "table": "movements",
        "column": "received"
      }
    },
    {
      "id": "movements-issued",
      "label": "Units issued",
      "value": 72.0,
      "unit": "units",
      "calculation": "Sum movements.issued over the included records.",
      "formula": {
        "op": "sum",
        "table": "movements",
        "column": "issued"
      }
    },
    {
      "id": "bom-count",
      "label": "Assembly relationships",
      "value": 6.0,
      "unit": "records",
      "calculation": "Count unique bom_id values in bom.",
      "formula": {
        "op": "count",
        "table": "bom"
      }
    }
  ],
  "chart": {
    "title": "Ending stock by part",
    "unit": "units",
    "points": [
      {
        "label": "DESK",
        "value": 60
      },
      {
        "label": "BASE",
        "value": 18
      },
      {
        "label": "TOP",
        "value": 9
      },
      {
        "label": "LEG",
        "value": 140
      },
      {
        "label": "PANEL",
        "value": 38
      },
      {
        "label": "SCREW",
        "value": 484
      }
    ]
  },
  "notes": [
    "Producing one DESK requires four LEG, one PANEL and twelve SCREW leaf units. Intermediate assembly counts must not be double-counted as raw parts.",
    "Production orders and shipment plans are future commitments. They do not silently deduct the historical stock ledger. Confirm available stock and planned material requirements before fulfillment."
  ]
}
