# Northwind Supply Co

> Intermediate: 8 tables, 10 relationships, 6 scenarios — a complete recipe you can run as shipped.

Section: Examples · Type: example · Last updated: 2026-09-13

Northwind Supply Co — a whole company. 8 tables (Office, Employee, Customer, Supplier, Product, Order, OrderLine, Invoice), 20,861 rows as declared, 10 relationships, 6 scenarios. Seed 20260826, so running it reproduces exactly the data described here.

## The picture

examples/whole-company.wl.json (8 tables) → worklens bundle (seed 20260826) → Run folder (data + proof)

## Tables

- Office — 7 fields, 6 rows
- Employee — 11 fields, 90 rows, 1 constraint
- Customer — 11 fields, 1,200 rows
- Supplier — 6 fields, 25 rows
- Product — 7 fields, 340 rows
- Order — 10 fields, 4,800 rows, 2 constraints
- OrderLine — 6 fields, 9,600 rows, 2 constraints
- Invoice — 10 fields, 4,800 rows, 2 constraints

## Relationships

- Order.office_id → Office.office_id (fk)
- Employee.office_id → Office.office_id (fk)
- Employee.manager_id → Employee.employee_id (fk)
- Customer.office_id → Office.office_id (fk)
- Product.supplier_id → Supplier.supplier_id (fk)
- Order.customer_id → Customer.customer_id (fk)
- Order.sales_rep_id → Employee.employee_id (fk)
- OrderLine.order_id → Order.order_id (fk)
- OrderLine.product_id → Product.product_id (fk)
- Invoice.order_id → Order.order_id (fk)

## Scenarios

- clean — as declared, no rates changed
- sparse — sets null_rate
- approval_boundary — sets rows, defects
- orphans_and_mess — sets null_rate, defects
- empty — sets rows
- boundary — sets mode

## Recipe keys used

- column, constraints, derive, max, min, params_when, pattern, ref, relationships, rows, scenarios, scope, seed, sensitivity, shape, table, type, type_def, unique, values, weights, weights_when

## Run it

```bash
node packages/sdk-node/bin/worklens.js bundle examples/whole-company.wl.json --out-dir run
```

Seed 20260826 is in the file, so the bytes are the same on every machine.

## Related

- [Examples](https://theworklens.com/docs/examples): See how real requirements become WorkLens recipes: four complete recipes shipped with the engine, each on its own page.
- [Prove & bundle](https://theworklens.com/docs/cli/prove): worklens prove and worklens bundle — a verifiable proof as JSON, or a whole run folder with data, recipe, proof and manifest.
- [Homepage demo](https://theworklens.com/docs/examples/homepage-demo): Starter: 2 tables, 1 relationship, 0 scenarios — a complete recipe you can run as shipped.
- [Suncorp-shaped general insurance group](https://theworklens.com/docs/examples/insurance-group): Advanced: 20 tables, 23 relationships, 8 scenarios — a complete recipe you can run as shipped.

_← Previous: [vehicle-rental](https://theworklens.com/docs/examples/vehicle-rental) · Next: [Guides](https://theworklens.com/docs/guides) →_

_Tables, relationships, scenarios and the keys used are read from the recipe file at generation time. Source: examples/whole-company.wl.json._

_Canonical: https://theworklens.com/docs/examples/whole-company · This copy: https://theworklens.com/docs/examples/whole-company.md_
