/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.community.unit.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 单元表实体类
 *
 * @author BladeX
 * @since 2020-10-18
 */
@Data
@TableName("estate_unit")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Unit对象", description = "单元表")
public class Unit extends BaseEntity {

	private static final long serialVersionUID = 1L;

	private Long oldId;

	private Long buildingId;

	private String buildingName;

	/**
	* 单元名称-只能输入数字和字母
	*/
		@ApiModelProperty(value = "单元名称-只能输入数字和字母")
		private String name;
	/**
	* 单元编号
	*/
		@ApiModelProperty(value = "单元编号")
		private String unitNumber;

	/**
	 * 单元楼类型
	 */
		@ApiModelProperty(value = "单元楼类型")
		private Integer type;
	/**
	/**
	* 所属小区id
	*/
		@ApiModelProperty(value = "所属小区id")
		private Long residentialId;
	/**
	* 所属小区名称
	*/
		@ApiModelProperty(value = "所属小区名称")
		private String residentialName;
	/**
	* 所属网格id
	*/
		@ApiModelProperty(value = "所属网格id")
		private Long agencyId;
	/**
	* 所属小区名称
	*/
		@ApiModelProperty(value = "所属网格名称")
		private String agencyName;
	/**
	* 存储位置（通过该字段快速查询，所有的子节点）
	*/
		@ApiModelProperty(value = "存储位置（通过该字段快速查询，所有的子节点）")
		private String orgPosition;
	/**
	* 物业路径
	*/
		@ApiModelProperty(value = "物业路径")
		private String estatePosition;
	/**
	* 负责人姓名
	*/
		@ApiModelProperty(value = "负责人姓名")
		private String personName;
	/**
	* 负责人电话
	*/
		@ApiModelProperty(value = "负责人电话")
		private String personTel;
	/**
	* 建筑年代
	*/
		@ApiModelProperty(value = "建筑年代")
		private String builtYear;
	/**
	* 产权性质
	*/
		@ApiModelProperty(value = "产权性质")
		private String propertyNature;
	/**
	* 有无电梯
	*/
		@ApiModelProperty(value = "有无电梯")
		private String includingElevator;
	/**
	* 房间数量
	*/
		@ApiModelProperty(value = "房间数量")
		private Integer roomNumber;
	/**
	* 住户数量
	*/
		@ApiModelProperty(value = "住户数量")
		private Integer userNumber;

	/**
	 * 楼层数
	 */
	@ApiModelProperty(value = "楼层数")
	private Integer floorNumber;
	/**
	* 序号
	*/
		@ApiModelProperty(value = "序号")
		private Integer serial;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		private String remark;
	/**
	* 所属机构id（属于社区机构，则存社区机构ID;无社区机构，则存小区ID）
	*/
		@ApiModelProperty(value = "所属机构id（属于社区机构，则存社区机构ID;无社区机构，则存小区ID）")
		private Long orgPid;
	/**
	* 所属机构名称（属于社区机构，则存社区机构名称;无社区机构，则存小区名称）
	*/
		@ApiModelProperty(value = "所属机构名称（属于社区机构，则存社区机构名称;无社区机构，则存小区名称）")
		private String orgPidName;
	/**
	* 根机构Id
	*/
		@ApiModelProperty(value = "根机构Id")
		private Long rootOrgId;
	/**
	* 创建人账号ID
	*/
		@ApiModelProperty(value = "创建人账号ID")
		private Long createAccountId;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		private LocalDateTime createDate;

		private String pic;

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

	@ApiModelProperty("集约平台id")
	private String inhabitantId;


}
