package com.palmnest.model.lingling;

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

/**
 * @Author 黄笑天
 * @Description 令令开门设备实体表
 * @Date 2018/12/7 11:06
 **/
@Entity
@Table(name = "tb_lingling_device")
public class LingLingDevice implements Serializable {

	private static final Long serialVersionUID = -6511690842725313507L;

	private Long    id;
	private Integer deviceType;//'设备类型'
	private Integer deviceId;//'令令开门设备 ID'
	private String  deviceName;//'设备名称'
	private String  deviceCode;//'设备SN码'
	private Integer deviceStatus;//'设备状态 0-离线 1-在线'
	private String  address;//'设备地址'
	private String  remark;//'备注信息'
	private Date    createTime;//'添加时间'
	private Long    creator;//'添加人'
	private Date    modifyTime;//'修改时间'
	private Long    modify;//'修改人'
	private Integer isEnable;// 0-禁用 1-可用
	private Integer orgId;// 项目id
	private String  sdkKey;// 设备的sdkKey
	
	private Integer methedType;// 方法来源1-A开头的SN码的；2-M开头的SN码的
	
	private Integer inOutType;// 进出方向，默认进（1 进，2 出）,3 电梯

	@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 getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}

	public Integer getDeviceId() {
		return deviceId;
	}

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

	public String getDeviceName() {
		return deviceName;
	}

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

	public String getDeviceCode() {
		return deviceCode;
	}

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

	public Integer getDeviceStatus() {
		return deviceStatus;
	}

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

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreateTime() {
		return createTime;
	}

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

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Long getModify() {
		return modify;
	}

	public void setModify(Long modify) {
		this.modify = modify;
	}

	public Integer getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Integer isEnable) {
		this.isEnable = isEnable;
	}

	public Integer getOrgId() {
		return orgId;
	}

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

	public String getSdkKey() {
		return sdkKey;
	}

	public void setSdkKey(String sdkKey) {
		this.sdkKey = sdkKey;
	}

	public Integer getMethedType() {
		return methedType;
	}

	public void setMethedType(Integer methedType) {
		this.methedType = methedType;
	}

	public Integer getInOutType() {
		return inOutType;
	}

	public void setInOutType(Integer inOutType) {
		this.inOutType = inOutType;
	}
	
	
	
	
}
