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.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.UUID;

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

    @Column("club_uuid")
    private UUID clubUuid;

    @Column("court_uuid")
    private UUID courtUuid;

    @Column("court_name")
    private String courtName;

    @Column("requester_name")
    private String requesterName;

    @Column("requester_email")
    private String requesterEmail;

    @Column("requester_phone")
    private String requesterPhone;

    @Column("booking_date")
    private LocalDate bookingDate;

    @Column("start_time")
    private LocalTime startTime;

    @Column("end_time")
    private LocalTime endTime;

    private String message;
    private String status = "NEW";

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