package de.oaa.xxx.gruppe.entity;

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

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

@Getter
@Setter
@Entity
@Table(name = "gruppe_beitrag_like",
        uniqueConstraints = @UniqueConstraint(columnNames = {"beitragId", "userId"}))
public class GruppenbeitragLikeEntity {

    @Id
    @Column
    private UUID likeId;

    @Column(nullable = false)
    private UUID beitragId;

    @Column(nullable = false)
    private UUID userId;

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