package de.oaa.xxx.location.entity;

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

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

@Getter
@Setter
@Entity
@Table(name = "location_event")
public class LocationEventEntity {

    @Id
    @Column
    private UUID eventId;

    @Column(nullable = false)
    private UUID locationId;

    @Column(nullable = false, length = 200)
    private String title;

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

    /** base64-Profilbild der Veranstaltung, max 1024px */
    @Column(columnDefinition = "MEDIUMTEXT")
    private String imageData;

    @Column(nullable = false)
    private LocalDateTime startAt;

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