package com.ruoyi.web.work.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * @author lsw
 * @date 2024-07-26
 */
@Data
@TableName(value = "tb_bind_user")
@Accessors(chain = true)
public class BindUser{
    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "患者id")
    private Long patientId;

    @ApiModelProperty(value = "小程序id")
    private Long userId;

    @ApiModelProperty(value = "患者姓名")
    private String patientName;

    @ApiModelProperty(value = "关系")
    private String relationship;

    @ApiModelProperty(value = "状态:0=未启用,1=当前就诊人")
    private Integer state;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "患者手机号")
    @TableField(exist = false)
    private String phone;

}
