package cn.iocoder.yudao.module.system.dal.dataobject.biz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

/**
 * 亲属表
 */
@Data
@TableName("zn_relatives")
public class RelativesDO implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 长者ID
     */
    @TableField("people_id")
    private Long peopleId;

    /**
     * 长者姓名
     */
    @TableField("people_name")
    private String peopleName;


    /**
     * 亲属姓名
     */
    @TableField("name")
    private String name;

    /**
     * 家庭电话
     */
    @TableField("telephone")
    private String telephone;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 关系
     */
    @TableField("relation")
    private String relation;

    /**
     * 工作单位
     */
    @TableField("work_unit")
    private String workUnit;

    /**
     * 现在住址
     */
    @TableField("now_address")
    private String nowAddress;

    /**
     * 家庭住址
     */
    @TableField("address")
    private String address;

    /**
     * 紧急联系人
     */
    @TableField("isurgency")
    private String isurgency;

    /**
     * 性别
     */
    @TableField("gender_")
    private String gender;


    @TableField("papers_type")
    private String papersType;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;


    @TableField("status")
    private String status;

    @TableField("create_date")
    private LocalDateTime createDate;
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 是否是账单推送人
     */
    @TableField("is_bill_sender")
    private Boolean isBillSender;


    private Long tenantId;

    @TableField(exist = false)
    private ElderlyInfoDO elderlyInfo;
}
