/*
 *      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 com.baomidou.mybatisplus.annotation.IdType;
import org.springblade.core.mp.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 访客授权记录实体类
 *
 * @author BladeX
 * @since 2021-05-08
 */
@Data
@TableName("estate_guest_authorize")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GuestAuthorize对象", description = "访客授权记录")
public class GuestAuthorize extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键:替换基础类雪花算法生成的id，否则因长度过长导致无法生成二维码")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 访客类型：0-朋友  1-外卖 2-快递 3-其他
	 */
	@ApiModelProperty(value = "访客类型：0-朋友  1-外卖 2-快递 3-其他")
	private Integer guestType;
	/**
	 * 访客姓名
	 */
	@ApiModelProperty(value = "访客姓名")
	private String guestName;
	/**
	 * 访客电话
	 */
	@ApiModelProperty(value = "访客电话")
	private String guestTel;
	/**
	 * 访问的房间id
	 */
	@ApiModelProperty(value = "访问的房间id")
	private Long roomId;
	/**
	 * 访问的房间名称
	 */
	@ApiModelProperty(value = "访问的房间名称")
	private String roomName;
	/**
	 * 访问的单元id
	 */
	@ApiModelProperty(value = "访问的单元id")
	private Long unitId;
	/**
	 * 访问的单元名字
	 */
	@ApiModelProperty(value = "访问的单元名字")
	private String unitName;
	/**
	 * 访问的楼栋id
	 */
	@ApiModelProperty(value = "访问的楼栋id")
	private Long buildingId;
	/**
	 * 访问的楼栋名称
	 */
	@ApiModelProperty(value = "访问的楼栋名称")
	private String buildingName;
	/**
	 * 访问的住户id
	 */
	@ApiModelProperty(value = "访问的住户id")
	private Long userId;
	/**
	 * memberId
	 */
	@ApiModelProperty(value = "memberId")
	private Long memberId;
	/**
	 * 访问的住户姓名
	 */
	@ApiModelProperty(value = "访问的住户姓名")
	private String userName;

	/**
	 * 有效次数
	 */
	@ApiModelProperty(value = "有效次数")
	private Integer accessCount;
	/**
	 * 密码有效开始时间
	 */
	@ApiModelProperty(value = "密码有效开始时间")
	private Date beginDate;
	/**
	 * 密码有效结束时间
	 */
	@ApiModelProperty(value = "密码有效结束时间")
	private Date endDate;
	/**
	 * 所属小区id
	 */
	@ApiModelProperty(value = "所属小区id")
	private Long residentialId;
	/**
	 * 小区名字
	 */
	@ApiModelProperty(value = "小区名字")
	private String residentialName;
	/**
	 * 可用状态 :0-有效 1-失效
	 */
	@ApiModelProperty(value = "可用状态 :0-有效 1-失效")
	private Integer enableType;
	/**
	 * 存储位置（通过该字段快速查询，所有的子节点）
	 */
	@ApiModelProperty(value = "存储位置（通过该字段快速查询，所有的子节点）")
	private String orgPosition;

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

	@ApiModelProperty(value = "企业名称")
	private String enterpriseName;

	@ApiModelProperty(value = "来访人企业名称")
	private String guestEnterpriseName;

	@ApiModelProperty(value = "园区ID")
	private Long agencyId;

	@ApiModelProperty(value = "园区名称")
	private String agencyName;


}
