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

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

import java.util.Date;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-04-19
 */
@Data
@TableName("smart_door_device")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DoorDevice对象", description = "DoorDevice对象")
public class DoorDevice extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 具体地址
	*/
		@ApiModelProperty(value = "具体安装地址")
		private String address;
	/**
	* 名称
	*/
		@ApiModelProperty(value = "设备名称")
		private String name;
	/**
	 * 园区id
	 */
	@ApiModelProperty(value = "园区ID")
	private Long agencyId;
	/**
	* 区域ID
	*/
		@ApiModelProperty(value = "区域ID")
		private Long residentialId;
	/**
	 * 所属楼栋
	 */
	@ApiModelProperty(value = "所属楼栋")
	private Long buildingId;

	/**
	 * 所属单元
	 */
	@ApiModelProperty(value = "所属单元")
	private Long unitId;
	/**
	 * 所属楼层
	 */
	@ApiModelProperty(value = "所属楼层")
	private Long floorId;

	/**
	 * 房间ID
	 */
	@ApiModelProperty(value = "房间ID")
	private Long roomId;

	/**
	 * 企业ID
	 */
	@ApiModelProperty(value = "企业ID")
	private Long enterpriseId;


	/**
	* 设备序列号
	*/
		@ApiModelProperty(value = "设备序列号")
		private String serialNum;
	/**
	* 纬度
	*/
		@ApiModelProperty(value = "纬度")
		private String latitude;
	/**
	* 经度
	*/
		@ApiModelProperty(value = "经度")
		private String longitude;
	/**
	* 设备厂家
	*/
		@ApiModelProperty(value = "设备厂家")
		private String deviceFactory;
	/**
	* 设备状态：0-离线 1-在线 2-异常
	*/
		@ApiModelProperty(value = "设备状态")
		private Integer deviceStatus;

	/**
	 * 设备朝向 1-进 2-出
	 */
	@ApiModelProperty(value = "设备朝向 1-进 2-出")
	private Integer isOut;

	/**
	 * 1：普通点位
	 * 2：特殊点位
	 */
	@ApiModelProperty(value = "点位类型")
	private Integer localType;

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

	/**
	 * 心跳时间
	 */
	@ApiModelProperty(value = "心跳时间")
	private Date heartbeatTime;



}
