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 = "tennis_clubs")
public class TennisClub {
    @Id
    @Column("uuid")
    private UUID uuid;
    @NonNull
    private String name;
    private String description;
    private String address;
    private String phone;
    private String email;
    private String website;
    private List<String> images;

    @Column("court_uuids")
    private List<UUID> courtUuids;

    private String conveniences;

    @Column("contact_phone")
    private String contactPhone;

    @Column("contact_person")
    private String contactPerson;

    @Column("telegram_link")
    private String telegramLink;

    @Column("owner_uuid")
    private UUID ownerUuid;

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