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

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 出入记录实体类
 *
 * @author BladeX
 * @since 2020-11-13
 */
@Data
@TableName("estate_capture_records")
@ApiModel(value = "CaptureRecords对象", description = "出入记录")
public class CaptureRecords implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	* 主键Id
	*/
		@ApiModelProperty(value = "主键Id")
		@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	* 是否为服务人员{ 1：是，2：不是,3：黑户 }
	*/
		@ApiModelProperty(value = "是否为服务人员{ 1：是，2：不是,3：黑户 }")
		private Integer isAdmin;
	/**
	* 用户类型
非服务人员：1-业主 2-家属 2-租户
服务人员：()0-保安 1-快递 2-外卖 3-清洁 4-其他
	*/
		@ApiModelProperty(value = "用户类型 非服务人员：1-业主 2-家属 2-租户 服务人员：()0-保安 1-快递 2-外卖 3-清洁 4-其他")
		private Integer accessUserType;
	/**
	* 设备id
	*/
		@ApiModelProperty(value = "设备id")
		private Long deviceId;
	/**
	* 设备名字
	*/
		@ApiModelProperty(value = "设备名字")
		private String deviceName;
	/**
	* 设备序列号
	*/
		@ApiModelProperty(value = "设备序列号")
		private String serialNumber;
	/**
	* 设备的安装位置
	*/
		@ApiModelProperty(value = "设备的安装位置")
		private String installPath;
	/**
	* 开门用户的id
	*/
		@ApiModelProperty(value = "开门用户的id")
		private Long openUserId;
	/**
	* 开门用户的名字
	*/
		@ApiModelProperty(value = "开门用户的名字")
		private String openUserName;
	/**
	* 开门住户手机号
	*/
		@ApiModelProperty(value = "开门住户手机号")
		private String openUserTel;
	/**
	* 抓拍照片（没有域名）
	*/
		@ApiModelProperty(value = "抓拍照片（没有域名）")
		private String snapshoUri;
	/**
	* 开门类型 0- 人脸 1-密码 2-刷卡  3-远程
	*/
		@ApiModelProperty(value = "开门类型 0- 人脸 1-密码 2-刷卡  3-远程")
		private Integer openDoorType;
	/**
	* 卡号（当s_open_door_type = 2时，需要录入卡号）
	*/
		@ApiModelProperty(value = "卡号（当s_open_door_type = 2时，需要录入卡号）")
		private String accessCardNo;
	/**
	* 出入时间
	*/
		@ApiModelProperty(value = "出入时间")
		private LocalDateTime accessDate;
	private Long roomId;
	/**
	* 单元id
	*/
		@ApiModelProperty(value = "单元id")
		private Long unitId;
	/**
	* 小区id
	*/
		@ApiModelProperty(value = "小区id")
		private Long residentialId;
	/**
	* 存储位置（通过该字段快速查询，所有的子节点）
	*/
		@ApiModelProperty(value = "存储位置（通过该字段快速查询，所有的子节点）")
		private String orgPosition;
	/**
	* 所属根机构
	*/
		@ApiModelProperty(value = "所属根机构")
		private Long rootOrgId;
	/**
	* 创建时间
	*/
		@ApiModelProperty(value = "创建时间")
		private LocalDateTime createDate;
	/**
	* 1：进，2：出
	*/
		@ApiModelProperty(value = "1：进，2：出")
		private Integer isOut;
	/**
	* 年龄
	*/
		@ApiModelProperty(value = "年龄")
		private Integer accessAge;
	/**
	* 性别  0-未定义  1-男 2-女
	*/
		@ApiModelProperty(value = "性别  0-未定义  1-男 2-女")
		private Integer accessSex;
	/**
	* 物业路径
	*/
		@ApiModelProperty(value = "物业路径")
		private String estatePosition;
	/**
	* 对比图
	*/
		@ApiModelProperty(value = "对比图")
		private String compareUrl;
	/**
	* 对比度
	*/
		@ApiModelProperty(value = "对比度")
		private String contrast;
	/**
	* 小区名称
	*/
		@ApiModelProperty(value = "小区名称")
		private String residentialName;
	/**
	* 单元名称
	*/
		@ApiModelProperty(value = "单元名称")
		private String unitName;
	/**
	* 所属房间名称
	*/
		@ApiModelProperty(value = "所属房间名称")
		private String roomName;
	/**
	* 旧平台id
	*/
		@ApiModelProperty(value = "旧平台id")
		private Long oldId;

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

}
