package thyyxxk.webserver.entity.ca;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "patient_id_card_type")
public class PatientIdCardType implements Serializable {

    private static final long serialVersionUID = 423406566173876442L;

    /**
     * 主键
     */
    @TableId(type = IdType.NONE)
    private String id;

    /**
     * 身份证id
     */
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 1 = 本人 2 = 亲属 3 = 朋友 4 = 伴侣
     */
    @TableField(value = "ca_type")
    private Integer caType;


    @TableField(value = "name")
    private String name;



    /**
     * patNo
     */
    @TableField(value = "pat_no")
    private String patNo;

    public static LambdaQueryWrapper<PatientIdCardType> lambdaQueryWrapper() {
        return new LambdaQueryWrapper<>();
    }

    public static QueryWrapper<PatientIdCardType> queryWrapper() {
        return new QueryWrapper<>();
    }


}
