package com.ruoyi.web.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 人员房屋关系表
 * @TableName person_house_relation
 */
@TableName(value ="person_house_relation")
@Data
public class PersonHouseRelation implements Serializable {
    /**
     * ID
     */
    @TableId()
    private Long id;

    /**
     * 人员ID
     */
    private Long personId;

    /**
     * 房屋ID
     */
    private Long houseId;

    private int villagerType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 删除标志
     */
    @TableLogic
    @JsonIgnore
    private String delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}