package com.example.dateplanner.models.entities;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

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

@Data
@NoArgsConstructor
@Table(name = "gallery_posts")
public class GalleryPost {
    @Id
    @Column("uuid")
    private UUID uuid;

    @NonNull
    private String title;

    private String content;

    @Column("image_urls")
    private List<String> imageUrls;

    @Column("is_published")
    private Boolean isPublished = Boolean.TRUE;

    @Column("published_at")
    private LocalDateTime publishedAt;

    @Column("created_at")
    private LocalDateTime createdAt;

    @Column("updated_at")
    private LocalDateTime updatedAt;
}
