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")
public class GruppeEntity {

    @Id
    @Column
    private UUID gruppeId;

    @Column(length = 100, nullable = false)
    private String name;

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

    @Column(columnDefinition = "MEDIUMTEXT")
    private String bild;

    @Column(nullable = false)
    private boolean isPrivate = false;

    @Column(nullable = false)
    private LocalDateTime createdAt;

    @Column(nullable = false)
    private UUID createdByUserId;
}
