package de.oaa.xxx.feed.entity;

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

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

@Getter
@Setter
@Entity
@Table(name = "feed_post_like", uniqueConstraints = {
        @UniqueConstraint(columnNames = {"postId", "userId"})
})
public class FeedPostLikeEntity {

    @Id
    @Column
    private UUID likeId;

    @Column(nullable = false)
    private UUID postId;

    @Column(nullable = false)
    private UUID userId;

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