package de.oaa.xxx.dating;

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

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

@Getter
@Setter
@Entity
@Table(name = "dating_date_interest",
        uniqueConstraints = @UniqueConstraint(columnNames = {"date_id", "user_id"}))
public class DatingDateInterestEntity {

    @Id
    @Column
    private UUID interestId;

    @Column(name = "date_id", nullable = false)
    private UUID dateId;

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

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