/*
 *      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.estate.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-03-30
 */
@Data
@TableName("estate_access_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AccessRecord对象", description = "AccessRecord对象")
public class AccessRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 用户id
	*/
		@ApiModelProperty(value = "用户id")
		private String userId;
	/**
	* 用户姓名
	*/
		@ApiModelProperty(value = "用户姓名")
		private String userName;
	/**
	* 园区id
	*/
		@ApiModelProperty(value = "园区id")
		private Long agencyId;
	/**
	* 小区id
	*/
		@ApiModelProperty(value = "小区id")
		private Long residentialId;
	/**
	* 企业id
	*/
		@ApiModelProperty(value = "企业id")
		private Long enterpriseId;
	/**
	* 人脸
	*/
		@ApiModelProperty(value = "人脸")
		private String faceUrl;
	/**
	* 设备唯一标识
	*/
		@ApiModelProperty(value = "设备唯一标识")
		private Long deviceId;
	/**
	* 开门时间
	*/
		@ApiModelProperty(value = "开门时间")
		private Date openTime;
	/**
	* 开门类型 0- 人脸 1-密码 2-刷卡  3-远程
	*/
		@ApiModelProperty(value = "开门类型 0- 人脸 1-密码 2-刷卡  3-远程")
		private Integer openType;
	/**
	* 体温
	*/
		@ApiModelProperty(value = "体温")
		private String temperature;
	/**
	* 小区名字
	*/
		@ApiModelProperty(value = "小区名字")
		private String residentialName;
	/**
	* 企业名称
	*/
		@ApiModelProperty(value = "企业名称")
		private String enterpriseName;
	/**
	* 机构类型
	*/
		@ApiModelProperty(value = "机构类型")
		private Integer agencyType;
	/**
	* 设备位置
	*/
		@ApiModelProperty(value = "设备位置")
		private String deviceAddress;
	/**
	* 机构名称
	*/
		@ApiModelProperty(value = "机构名称")
		private String agencyName;
	/**
	* 设备序列号
	*/
		@ApiModelProperty(value = "设备序列号")
		private String serialNum;
	/**
	 * 设备名称
	 */
	@ApiModelProperty(value = "设备名称")
	private String deviceName;

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

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

	@ApiModelProperty(value = "指令序号")
	private String commandSeq;

	@ApiModelProperty(value = "开门是否成功，1成功，-1失败")
	private Integer openSuccess;

	@ApiModelProperty(value = "失败原因")
	private String failReason;

	//ZH_：住户，QYYG_：企业员工，FWY_：服务员，FK_：访客，ADMIN_：管理员
	@ApiModelProperty(value = "用户类型")
	private String userType;


}
