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_like",
        uniqueConstraints = @UniqueConstraint(columnNames = {"liker_id", "liked_id"}))
public class DatingLikeEntity {

    @Id
    @Column
    private UUID likeId;

    @Column(name = "liker_id", nullable = false)
    private UUID likerId;

    @Column(name = "liked_id", nullable = false)
    private UUID likedId;

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