package com.lesingle.creation.dto.child;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;

/**
 * 创建子女 DTO
 */
@Data
@Schema(description = "创建子女请求")
public class CreateChildDTO {

    @NotBlank(message = "子女用户名不能为空")
    @Schema(description = "子女用户名")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称")
    private String nickname;

    @Schema(description = "性别：male/female")
    private String gender;

    @Schema(description = "出生日期")
    private LocalDate birthday;

    @Schema(description = "所在城市")
    private String city;

    @Schema(description = "头像 URL")
    private String avatar;

    @Schema(description = "与监护人关系")
    private String relationship;
}
