package com.yuchen.saas.park.api.entity.property;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.mp.base.BaseEntity;

/**
 * @Author 蔡文强
 * @Date 2023/11/28 10:56
 * @Description 个人房产表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("property_user_house")
@ApiModel(value="PropertyUserHouse对象", description="个人房产表")
public class PropertyUserHouse extends BaseEntity {

    /**
     * 园区ID
     */
    @ApiModelProperty(name = "parkId", value = "园区ID")
    private Long parkId;
    /**
     * 房源ID
     */
    @ApiModelProperty(name = "houseId", value = "房源ID")
    private Long houseId;
    /**
     * 身份(1:业主 2:成员 3:租客)
     */
    @ApiModelProperty(name = "identity", value = "身份(1:业主 2:成员 3:租客)")
    private Integer identity;
    /**
     * 用户手机号
     */
    @ApiModelProperty(name = "userPhone", value = "用户手机号")
    private String userPhone;
    /**
     * 用户姓名
     */
    @ApiModelProperty(name = "userName", value = "用户姓名")
    private String userName;
    /**
     * 用户性别(1:男 2:女)
     */
    @ApiModelProperty(name = "sex", value = "用户性别(1:男 2:女)")
    private Integer sex;
    /**
     * 用户平台ID
     */
    @ApiModelProperty(name = "userDetailId", value = "用户平台ID")
    private Long userDetailId;
    /**
     * 所属业主用户平台ID(租客或者成员身份才有值)
     */
    @ApiModelProperty(name = "ownerDetailId", value = "所属业主用户平台ID(租客或者成员身份才有值)")
    private Long ownerDetailId;
    /**
     * 与业主关系
     */
    @ApiModelProperty(name = "relation", value = "与业主关系")
    private String relation;
    /**
     * 人员照片
     */
    @ApiModelProperty(name = "photo", value = "人员照片")
    private String photo;
    /**
     * 是否失效(0:否 1:是)
     */
    @ApiModelProperty(name = "isInvalid", value = "是否失效(0:否 1:是)")
    private Integer isInvalid;
    /**
     * 关联ID
     */
    @ApiModelProperty(name = "linkId", value = "关联ID")
    private Long linkId;

}
