package org.raddatz.familienarchiv.document;

import io.swagger.v3.oas.annotations.media.Schema;
import org.raddatz.familienarchiv.audit.ActivityActorDTO;
import org.raddatz.familienarchiv.document.Document;

import java.util.List;

public record DocumentSearchItem(
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED)
        Document document,
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED)
        SearchMatchData matchData,
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED)
        int completionPercentage,
        @Schema(requiredMode = Schema.RequiredMode.REQUIRED)
        List<ActivityActorDTO> contributors
) {}
