package com.gxwebsoft.clinic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 分销商用户记录表
 *
 * @author 科技小王子
 * @since 2025-10-23 15:58:20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ClinicDoctorUser对象", description = "分销商用户记录表")
public class ClinicDoctorUser implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "类型 0经销商 1企业 2集团")
    private Integer type;

    @Schema(description = "自增ID")
    private Integer userId;

    @Schema(description = "昵称")
    @TableField(exist = false)
    private String nickname;

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

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

    @Schema(description = "手机号")
    @TableField(exist = false)
    private String phone;

    @Schema(description = "部门")
    private Integer departmentId;

    @Schema(description = "专业领域")
    private String specialty;

    @Schema(description = "职务级别")
    private String position;

    @Schema(description = "执业资格")
    private String qualification;

    @Schema(description = "医生简介")
    private String introduction;

    @Schema(description = "挂号费")
    private BigDecimal consultationFee;

    @Schema(description = "工作年限")
    private Integer workYears;

    @Schema(description = "问诊人数")
    private Integer consultationCount;

    @Schema(description = "专属二维码")
    private String qrcode;

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

    @Schema(description = "排序号")
    private Integer sortNumber;

    @Schema(description = "是否删除")
    private Integer isDelete;

    @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;

}
