package de.cannamanage.domain.entity;

import jakarta.persistence.*;
import lombok.*;

import java.io.Serializable;
import java.util.UUID;

/**
 * Join table entity: links a NotificationSend to individual recipients and their notifications.
 */
@Entity
@Table(name = "notification_send_recipients")
@IdClass(NotificationSendRecipientId.class)
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class NotificationSendRecipient {

    @Id
    @Column(name = "send_id", nullable = false)
    private UUID sendId;

    @Id
    @Column(name = "user_id", nullable = false)
    private UUID userId;

    @Column(name = "notification_id")
    private UUID notificationId;
}
