package ru.soune.nocopy.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.Past;
import jakarta.validation.constraints.Size;
import lombok.Data;
import ru.soune.nocopy.entity.user.GenderType;

import java.time.LocalDate;

@Data
@JsonFormat(with = JsonFormat.Feature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
public class UserRequest {
    @Size(min = 2)
    private String fullName;
    private String company;
    @Email
    private String email;
    private String phone;
    private GenderType genderType;
    @Past
    @JsonFormat(pattern = "dd-MM-yyyy")
    private LocalDate birthday;
}
