# Domain Entities — Unit 4: Lieve woorden ## Relationships ```mermaid graph TD List["Testimonial list"] Item["Testimonial"] Image["ContentImage"] Slide["Carousel slide"] List -->|"contains, in display order"| Item Item -->|"has one photo"| Image Item -->|"shown as"| Slide classDef entity fill:#2196F3,stroke:#0d47a1,stroke-width:1px,color:#000; classDef value fill:#FF9800,stroke:#e65100,stroke-width:1px,color:#000; classDef ui fill:#9ae6b4,stroke:#2f855a,stroke-width:1px,color:#000; class List,Item entity; class Image value; class Slide ui; ``` Text alternative: the testimonial list holds testimonials in display order; each has one photo and is shown as one carousel slide (blue = data, orange = value, green = UI). ## Testimonial | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | Stable, unique key (e.g. `majella-mark`) | | `shoot` | string | yes | Shoot type as a label (e.g. "Trouwshoot") | | `quote` | string | yes | The review text, without quotation marks (the design adds a decorative one) | | `author` | string | yes | Names as they should appear (e.g. "Majella & Mark") | | `image` | ContentImage | yes | Photo for the review, with alt text and size | ### Invariants - `id` unique within the list. - `shoot`, `quote` and `author` non-empty after trimming. - `image.src` non-empty; `image.width` and `image.height` positive. - List order is the display order. Testimonials that break an invariant are skipped; of two with the same id the first is kept (same approach as packages and socials). ## Initial data (live site, 2026-10-19) | id | shoot | author | quote (start) | photo | |---|---|---|---|---| | `majella-mark` | Trouwshoot | Majella & Mark | "Super mooie foto's door Andrea gemaakt op onze trouwdag en pré-wedding shoot. …" | live `IMG_2497-5.jpg` (rings), alt "Bruidegom schuift de trouwring om de vinger van de bruid" | | `demi-kevin` | Newbornshoot | Demi & Kevin | "Heel tevreden met de newbornshoot. …" | live `5-F41A4650-scaled.jpg` (baby's fist), alt "Vuistje van een pasgeboren baby tussen gebreide dekens" | Full texts: requirements FR-HP-05. ## Section content (`HomeContent.testimonials`) | Field | Value | |---|---| | `title` | "Lieve woorden" |