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_pass", uniqueConstraints = @UniqueConstraint(columnNames = {"passerId", "passedId"}))
public class DatingPassEntity {

    @Id
    @Column
    private UUID passId;

    @Column(nullable = false)
    private UUID passerId;

    @Column(nullable = false)
    private UUID passedId;

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