package org.raddatz.familienarchiv.geschichte.journeyitem;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.UUID;

/**
 * Read-model response for a JourneyItem. Never the JPA entity (which has a
 * Geschichte back-reference that would leak / hit LazyInitializationException).
 */
public record JourneyItemView(
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED) UUID id,
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED) int position,
        DocumentSummary document,
        /** Plain text — not HTML-sanitized. Renderers MUST NOT use {@code @html} or equivalent unsafe output. */
        String note
) {}
