package com.codvision.basic.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @author codvision
 */
@Data
@ApiModel
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_person_address_relation")
public class PersonAddressRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty("房屋id")
    private Integer addressId;

    @ApiModelProperty("人员id")
    private Integer personId;

    @ApiModelProperty("人房关系-字典(PERSON_ADDRESS_RELATION)")
    private String personAddressRelation;

    @ApiModelProperty("人房关系-字典(HOUSEHOLDER_RELATION)")
    private String householderRelation;

    @ApiModelProperty("是否关联：0-否;1-是")
    private String flagRelated;

    @TableLogic
    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty("证件类型-字典(ID_TYPE)")
    private String idType;

    @ApiModelProperty("证件号码")
    private String idCard;

    @ApiModelProperty("地址编码")
    private String addressCode;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}