package com.palmnest.model.lingling;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author 黄笑天
 * @Description 令令开门日志实体类
 * @Date 2018/12/14 10:17
 **/
@Entity
@Table(name = "tb_lingling_log")
public class LingLingLog implements Serializable {

	private static final long serialVersionUID = -1313226872240941731L;

	private Long    id;
	private Integer type;// 日志类型
	private String  lingLingId;// linglingId
	private Integer deviceId;// 设备id
	private Date    openTime;// 开门时间
	private String  deviceCode;// 设备SN码
	private String  qrcodeKey;// 二维码
	private String  cardUid;// NFC实体卡id
	private Date    createTime;
	private Integer deviceStatus;// 设备状态
	private String  deviceVersion;// 设备版本号
	private String  mobile;// 手机号码
	private String  userName;// 名字
	private Integer orgId;
	private String deviceName;
	private Integer passType;//2-令令开门 4-koala

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getLingLingId() {
		return lingLingId;
	}

	public void setLingLingId(String lingLingId) {
		this.lingLingId = lingLingId;
	}

	public Integer getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(Integer deviceId) {
		this.deviceId = deviceId;
	}

	public Date getOpenTime() {
		return openTime;
	}

	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}

	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	public String getQrcodeKey() {
		return qrcodeKey;
	}

	public void setQrcodeKey(String qrcodeKey) {
		this.qrcodeKey = qrcodeKey;
	}

	public String getCardUid() {
		return cardUid;
	}

	public void setCardUid(String cardUid) {
		this.cardUid = cardUid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDeviceStatus() {
		return deviceStatus;
	}

	public void setDeviceStatus(Integer deviceStatus) {
		this.deviceStatus = deviceStatus;
	}

	public String getDeviceVersion() {
		return deviceVersion;
	}

	public void setDeviceVersion(String deviceVersion) {
		this.deviceVersion = deviceVersion;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public Integer getPassType() {
		return passType;
	}

	public void setPassType(Integer passType) {
		this.passType = passType;
	}
	
}
