package thyyxxk.webserver.entity.zhuyuanyisheng;

import java.io.Serializable;

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_family")
public class PatientFamily implements Serializable {

    private static final long serialVersionUID = 5999679895839502050L;

    @TableId
    private String id;

    /**
     * idCard
     */
    @TableField(value = "id_card")
    private String idCard;

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

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

    /**
     * patientCard
     */
    @TableField(value = "patient_card")
    private String patientCard;

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

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


}
