package de.oaa.xxx.location.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.UUID;

@Getter
@Setter
@Entity
@Table(name = "location_event_attendee",
        uniqueConstraints = @UniqueConstraint(columnNames = {"event_id", "user_id"}))
public class LocationEventAttendeeEntity {

    @Id
    @Column
    private UUID attendeeId;

    @Column(nullable = false, name = "event_id")
    private UUID eventId;

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

    @Column(nullable = false)
    private LocalDateTime registeredAt;
}
