package org.raddatz.familienarchiv.document;

import java.util.UUID;

/**
 * Published by DocumentService.deleteDocument inside its @Transactional boundary,
 * before documentRepository.deleteById fires. Listeners run synchronously in the
 * publisher's thread and transaction via plain @EventListener — this is load-bearing:
 * see ADR-038.
 */
public record DocumentDeletingEvent(UUID documentId) {}
