package com.example.dateplanner.models.entities;

import lombok.Data;
import lombok.NoArgsConstructor;
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.UUID;

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

    @Column("club_uuid")
    private UUID clubUuid;

    private String name;
    private String description;
    private String photo;
    private Integer price;
    private String cover;

    @Column("is_outdoor")
    private Boolean isOutdoor = Boolean.FALSE;

    @Column("is_visible")
    private Boolean isVisible = Boolean.TRUE;

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