package com.gxwebsoft.house.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 房源信息表
 *
 * @author 科技小王子
 * @since 2023-08-03 18:23:43
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Info对象", description = "房源信息表")
@TableName("house_info")
public class Info implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "house_id", type = IdType.AUTO)
    private Integer houseId;

    @ApiModelProperty(value = "房源标题")
    private String houseTitle;

    @ApiModelProperty(value = "房产所在的城市")
    private String cityByHouse;

    @ApiModelProperty(value = "户型")
    private String houseType;

    @ApiModelProperty(value = "租赁方式")
    private String leaseMethod;

    @ApiModelProperty(value = "租金")
    private BigDecimal rent;

    @ApiModelProperty(value = "月租金")
    private BigDecimal monthlyRent;

    @ApiModelProperty(value = "面积")
    private String extent;

    @ApiModelProperty(value = "楼层")
    private String floor;

    @ApiModelProperty(value = "房号")
    private String roomNumber;

    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "进入房屋的密码")
    private String password;

    @ApiModelProperty(value = "房屋朝向")
    private String toward;

    @ApiModelProperty(value = "房屋标签")
    private String houseLabel;

    @ApiModelProperty(value = "办公室配套")
    private String supporting;

    @ApiModelProperty(value = "图片附件")
    private String files;

    @ApiModelProperty(value = "房源介绍")
    private String content;

    @ApiModelProperty(value = "到期时间")
    private Date expirationTime;

    @ApiModelProperty(value = "所在省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在辖区")
    private String region;

    @ApiModelProperty(value = "所在地区")
    private String area;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "是否实名认证")
    private Integer authentication;

    @ApiModelProperty(value = "状态 10待审核 20驳回 30通过")
    private Integer status;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    @TableField(exist = false)
    private String avatar;

    @ApiModelProperty(value = "用户等级")
    @TableField(exist = false)
    private String gradeName;

}
