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 = "beitrag_meldung",
        uniqueConstraints = @UniqueConstraint(columnNames = {"beitragId", "melderId"}))
public class BeitragMeldungEntity {

    @Id
    @Column
    private UUID meldungId;

    @Column(nullable = false)
    private UUID beitragId;

    @Column(nullable = false)
    private UUID melderId;

    @Column(columnDefinition = "TEXT")
    private String grund;

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