package com.gxwebsoft.clinic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 医生入驻申请
 *
 * @author 科技小王子
 * @since 2025-10-19 09:27:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ClinicDoctorApply对象", description = "医生入驻申请")
public class ClinicDoctorApply implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "apply_id", type = IdType.AUTO)
    private Integer applyId;

    @Schema(description = "类型 0医生")
    private Integer type;

    @Schema(description = "用户ID")
    private Integer userId;

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

    @Schema(description = "性别 1男 2女")
    private Integer gender;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "客户名称")
    private String dealerName;

    @Schema(description = "证件号码")
    private String idCard;

    @Schema(description = "生日")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthDate;

    @Schema(description = "区分职称等级（如主治医师、副主任医师）")
    private String professionalTitle;

    @Schema(description = "工作单位")
    private String workUnit;

    @Schema(description = "执业资格核心凭证")
    private String practiceLicense;

    @Schema(description = "限定可执业科室或疾病类型")
    private String practiceScope;

    @Schema(description = "开始工作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startWorkDate;

    @Schema(description = "简历")
    private String resume;

    @Schema(description = "使用 JSON 存储多个证件文件路径（如执业证、学历证）")
    private String certificationFiles;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "签约价格")
    private BigDecimal money;

    @Schema(description = "推荐人用户ID")
    private Integer refereeId;

    @Schema(description = "申请方式(10需后台审核 20无需审核)")
    private Integer applyType;

    @Schema(description = "审核状态 (10待审核 20审核通过 30驳回)")
    private Integer applyStatus;

    @Schema(description = "申请时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime applyTime;

    @Schema(description = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    @Schema(description = "合同时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime contractTime;

    @Schema(description = "过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expirationTime;

    @Schema(description = "驳回原因")
    private String rejectReason;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "商城ID")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
