package com.palmnest.model.lingling;

import javax.persistence.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 黄笑天
 * @Description 令令访客机
 * @Date 2019/3/18 15:36
 **/
@Entity
@Table(name = "tb_lingling_visitor_machine")
public class VisitorMachine implements Serializable {

	private static final long serialVersionUID = 8098655068986629566L;

	private Long    id;
	private Long    creator;
	private Date    createTime;
	private Long    modifier;
	private Date    modifyTime;
	private Integer enable;
	private Integer uploadIdenphoto;// 是否上传身份证头像（1 是 0 否）
	private Integer requiredIdenNumber;// 身份证是否必填（1 是 0 否）
	private Integer takePhoto;// 是否抓拍图片（1 是 0 否）
	private String  visitReason;// 到访目的/原因,用分号分割
	private Integer orgId;// 项目id
	
	
    private Integer isNewVersion;  //是否新设备
    private String deviceCode;     //访客机code
    private String machineJson;    //访客机Json
	

	@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;
	}

	@Column(name = "creator")
	public Long getCreator() {
		return creator;
	}

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

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

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

	@Column(name = "modifier")
	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	@Column(name = "modify_time")
	public Date getModifyTime() {
		return modifyTime;
	}

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

	@Column(name = "is_enable")
	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	@Column(name = "is_upload_idenphoto")
	public Integer getUploadIdenphoto() {
		return uploadIdenphoto;
	}

	public void setUploadIdenphoto(Integer uploadIdenphoto) {
		this.uploadIdenphoto = uploadIdenphoto;
	}

	@Column(name = "is_required_idennumber")
	public Integer getRequiredIdenNumber() {
		return requiredIdenNumber;
	}

	public void setRequiredIdenNumber(Integer requiredIdenNumber) {
		this.requiredIdenNumber = requiredIdenNumber;
	}

	@Column(name = "is_takephoto")
	public Integer getTakePhoto() {
		return takePhoto;
	}

	public void setTakePhoto(Integer takePhoto) {
		this.takePhoto = takePhoto;
	}

	@Column(name = "visit_reason")
	public String getVisitReason() {
		return visitReason;
	}

	public void setVisitReason(String visitReason) {
		this.visitReason = visitReason;
	}

	@Column(name = "org_id")
	public Integer getOrgId() {
		return orgId;
	}

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

	@Column(name = "is_new_version")
	public Integer getIsNewVersion() {
		return isNewVersion;
	}

	public void setIsNewVersion(Integer isNewVersion) {
		this.isNewVersion = isNewVersion;
	}

	@Column(name = "device_code")
	public String getDeviceCode() {
		return deviceCode;
	}

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

	@Column(name = "machine_json")
	public String getMachineJson() {
		return machineJson;
	}

	public void setMachineJson(String machineJson) {
		this.machineJson = machineJson;
	}
	
	
}
