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.util.UUID;

@Data
@NoArgsConstructor
@Table(name = "event_applications")
public class EventApplication {
    @Id
    private UUID uuid;

    @Column("event_uuid")
    private UUID eventUuid;

    @Column("club_uuid")
    private UUID clubUuid;

    @Column("full_name")
    private String fullName;

    private String email;

    @Column("birth_date")
    private LocalDate birthDate;

    private String gender;
    private String phone;

    @Column("rating_points")
    private Integer ratingPoints;

    private String status = "PENDING";

    @Column("rejection_reason")
    private String rejectionReason;

    @Column("created_at")
    private LocalDateTime createdAt;

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