package com.lesingle.modules.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("t_user_child")
@Schema(description = "用户子女实体")
public class UserChild implements Serializable {

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "家长ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "性别")
    private String gender;

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

    @Schema(description = "年级")
    private String grade;

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

    @Schema(description = "学校名称")
    @TableField("school_name")
    private String schoolName;

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

    @Schema(description = "是否删除：0-未删除，1-已删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField("modify_time")
    private LocalDateTime modifyTime;
}
