/*
 *      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.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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 2021-03-29
 */
@Data
@TableName("community_unit")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Unit对象", description = "单元表")
public class Unit extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单元名称
	*/
		@ApiModelProperty(value = "单元名称")
		private String name;
	/**
	* 园区id
	*/
		@ApiModelProperty(value = "园区id")
		@JsonSerialize(using= ToStringSerializer.class)
		private Long agencyId;
	/**
	* 园区名称
	*/
		@ApiModelProperty(value = "园区名称")
		private String agencyName;
	/**
	* 小区id
	*/
		@ApiModelProperty(value = "小区id")
		@JsonSerialize(using= ToStringSerializer.class)
		private Long residentialId;
	/**
	* 小区名称
	*/
		@ApiModelProperty(value = "小区名称")
		private String residentialName;
	/**
	* 楼栋id
	*/
		@ApiModelProperty(value = "楼栋id")
		private Long buildingId;
	/**
	* 楼栋名称
	*/
		@ApiModelProperty(value = "楼栋名称")
		private String buildingName;
	/**
	* 负责人姓名
	*/
		@ApiModelProperty(value = "负责人姓名")
		private String personName;
	/**
	* 负责人电话
	*/
		@ApiModelProperty(value = "负责人电话")
		private String personTel;
	/**
	* 建筑年代
	*/
		@ApiModelProperty(value = "建筑年代")
		private String builtYear;
	/**
	* 有无电梯
	*/
		@ApiModelProperty(value = "有无电梯")
		private String includingElevator;
	/**
	* 楼层数
	*/
		@ApiModelProperty(value = "楼层数")
		private Integer floorCount;
	/**
	* 房间数量
	*/
		@ApiModelProperty(value = "房间数量")
		private Integer roomCount;
	/**
	* 住户数量
	*/
		@ApiModelProperty(value = "住户数量")
		private Integer userCount;
	/**
	* 单元楼图片
	*/
		@ApiModelProperty(value = "单元楼图片")
		private String pic;
	/**
	* 备注
	*/
		@ApiModelProperty(value = "备注")
		private String remark;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		private LocalDateTime createDate;
	/**
	* 旧平台id
	*/
		@ApiModelProperty(value = "旧平台id")
		private Long oldId;
	/**
	* 机构路径
	*/
		@ApiModelProperty(value = "机构路径")
		private String orgPosition;

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


}
