package com.gxwebsoft.clinic.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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 = "ClinicPatientUser对象", description = "患者")
public class ClinicPatientUser 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 = "姓名")
    private String realName;

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

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

    @Schema(description = "性别 0未知 1男 2女")
    private Integer sex;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "身高")
    private String height;

    @Schema(description = "体重")
    private String weight;

    @Schema(description = "过敏史")
    private String allergyHistory;

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

}
