# Suncorp-shaped general insurance group

> Advanced: 20 tables, 23 relationships, 8 scenarios — a complete recipe you can run as shipped.

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

Suncorp-shaped general insurance group. 20 tables (Intermediary, Quote, Policy, PolicyParty, InsuredRisk, CommercialPolicy, CatastropheEvent, PropertyClaim, SupplierWorkOrder, MotorClaim, …), 109,400 rows as declared, 23 relationships, 8 scenarios. Seed 20260826, so running it reproduces exactly the data described here.

## The picture

examples/insurance-group.wl.json (20 tables) → worklens bundle (seed 20260826) → Run folder (data + proof)

## Tables

- Intermediary — 11 fields, 400 rows
- Quote — 14 fields, 9,000 rows
- Policy — 18 fields, 6,000 rows, 2 constraints
- PolicyParty — 10 fields, 8,000 rows
- InsuredRisk — 8 fields, 7,000 rows
- CommercialPolicy — 12 fields, 3,000 rows
- CatastropheEvent — 8 fields, 40 rows
- PropertyClaim — 14 fields, 8,000 rows
- SupplierWorkOrder — 10 fields, 6,000 rows, 1 constraint
- MotorClaim — 13 fields, 9,000 rows
- ThirdPartyMatter — 10 fields, 5,000 rows
- RecoveryAction — 7 fields, 4,000 rows
- ReinsuranceTreaty — 11 fields, 60 rows
- TreatyParticipation — 8 fields, 900 rows

- ReinsuranceRecovery — 8 fields, 5,000 rows
- PremiumTransaction — 10 fields, 9,500 rows
- PremiumInstalment — 11 fields, 9,000 rows
- CommissionStatementLine — 10 fields, 7,000 rows
- ClaimPayment — 11 fields, 9,500 rows
- ConductMatter — 9 fields, 3,000 rows

## Relationships

- Quote.intermediary_id → Intermediary.intermediary_id (fk)
- Policy.quote_id → Quote.quote_id (fk)
- Policy.intermediary_id → Intermediary.intermediary_id (fk)
- PolicyParty.policy_id → Policy.policy_id (fk)
- InsuredRisk.policy_id → Policy.policy_id (fk)
- CommercialPolicy.intermediary_id → Intermediary.intermediary_id (fk)
- PropertyClaim.policy_id → Policy.policy_id (fk)
- PropertyClaim.catastrophe_event_id → CatastropheEvent.event_id (fk)
- SupplierWorkOrder.claim_id → PropertyClaim.claim_id (fk)
- MotorClaim.policy_id → Policy.policy_id (fk)
- ThirdPartyMatter.claim_id → MotorClaim.claim_id (fk)
- RecoveryAction.claim_id → MotorClaim.claim_id (fk)
- TreatyParticipation.treaty_id → ReinsuranceTreaty.treaty_id (fk)
- ReinsuranceRecovery.treaty_id → ReinsuranceTreaty.treaty_id (fk)

- ReinsuranceRecovery.event_id → CatastropheEvent.event_id (fk)
- PremiumTransaction.policy_id → Policy.policy_id (fk)
- PremiumInstalment.policy_id → Policy.policy_id (fk)
- CommissionStatementLine.intermediary_id → Intermediary.intermediary_id (fk)
- CommissionStatementLine.transaction_id → PremiumTransaction.transaction_id (fk)
- ClaimPayment.claim_id → PropertyClaim.claim_id (fk)
- ClaimPayment.work_order_id → SupplierWorkOrder.work_order_id (fk)
- ConductMatter.claim_id → PropertyClaim.claim_id (fk)
- ConductMatter.policy_id → Policy.policy_id (fk)

## Scenarios

- clean — as declared, no rates changed
- empty — sets rows
- boundary — sets mode
- sparse — sets null_rate
- catastrophe_surge — sets rows, null_rate, defects
- finance_edge — sets defects
- bad_identifiers — sets defects
- orphans — sets defects

## Recipe keys used

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

## Run it

```bash
node packages/sdk-node/bin/worklens.js bundle examples/insurance-group.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.
- [vehicle-rental](https://theworklens.com/docs/examples/vehicle-rental): Intermediate: 4 tables, 5 relationships, 8 scenarios — a complete recipe you can run as shipped.

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

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

_Canonical: https://theworklens.com/docs/examples/insurance-group · This copy: https://theworklens.com/docs/examples/insurance-group.md_
