Skip to content

docs(normalization): illustrate worked examples with dj.Diagram figures - #259

Merged
dimitri-yatsenko merged 1 commit into
mainfrom
docs/normalization-diagrams
Aug 17, 2026
Merged

docs(normalization): illustrate worked examples with dj.Diagram figures#259
dimitri-yatsenko merged 1 commit into
mainfrom
docs/normalization-diagrams

Conversation

@dimitri-yatsenko

Copy link
Copy Markdown
Member

Adds generated dj.Diagram figures to the Schema Normalization chapter, so the worked examples are visible, not just code.

Diagrams (both theme-adaptive, LR, from the modernized renderer)

  • Fully normalized mouse-housing — after the "Fully normalized (correct)" block. Shows Mouse and Cage as entities and CageAssignment / MouseWeight as event tables keyed by date; CageAssignment → Cage renders as a secondary (dashed) FK, which is exactly the entity-vs-event distinction the section makes.
  • Workflow-normalized order — after the split-by-step block. Shows Order (with dashed secondary refs to Product/Customer) and the 1:1 Order → Payment → Shipment → Delivery chain (thick edges), making "the FK chain is the workflow" literal.

Scope

Only the multi-table examples get diagrams — a single-table case (the denormalized Mouse, the Species lookup) is one box and gains nothing. If you'd like the smaller relationship examples diagrammed too (e.g. the Temporal Associations patterns), I can add them.

Rendered from reconstructed schemas via the merged dj.Diagram renderer; SVGs validated.

Add two generated, theme-adaptive dj.Diagram figures to the normalization
chapter:
- Fully normalized mouse-housing schema (Mouse/Cage entities + CageAssignment/
  MouseWeight event tables; CageAssignment -> Cage shown as a secondary dashed FK).
- Workflow-normalized order schema (Order with dashed secondary refs to Product/
  Customer, then the 1:1 Order -> Payment -> Shipment -> Delivery chain).

Both make the entity-vs-event split and the workflow chain visible. Single-table
examples (denormalized Mouse, Species lookup) are left without diagrams.
@dimitri-yatsenko dimitri-yatsenko added the documentation Improvements or additions to documentation label Aug 14, 2026
@dimitri-yatsenko
dimitri-yatsenko merged commit d9cfa3c into main Aug 17, 2026
2 checks passed
@dimitri-yatsenko
dimitri-yatsenko deleted the docs/normalization-diagrams branch August 17, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants