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

    @Id
    @Column
    private UUID imageId;

    @Column(nullable = false)
    private UUID locationId;

    /** base64-kodiertes Bild, max 1024px */
    @Column(nullable = false, columnDefinition = "MEDIUMTEXT")
    private String imageData;

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