package com.palmnest.model.enterprise;

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

/**
 * @Author 黄笑天
 * @Description 企业权限配置实体
 * @Date 2019/2/25 8:56
 **/
@Entity
@Table(name = "tb_vir_perm_config")
public class VirPermConfig implements Serializable {

	private static final long serialVersionUID = -6659029315956465553L;

	private Long    id;
	private String  name;
	private Integer general;
	private Integer enable;
	private Date    createTime;
	private Date    modifyTime;
	private Long    creator;
	private Integer orgId;
	// 类型 0-企业权限 1-身份权限
	private Integer permType;
	// 企业id
	private Integer virId;
	private Integer checkRole;
	
	private String code;

	@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 String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "isGeneral")
	public Integer getGeneral() {
		return general;
	}

	public void setGeneral(Integer general) {
		this.general = general;
	}

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

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

	public Date getCreateTime() {
		return createTime;
	}

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

	public Date getModifyTime() {
		return modifyTime;
	}

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

	public Long getCreator() {
		return creator;
	}

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

	public Integer getOrgId() {
		return orgId;
	}

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

	public Integer getPermType() {
		return permType;
	}

	public void setPermType(Integer permType) {
		this.permType = permType;
	}

	public Integer getVirId() {
		return virId;
	}

	public void setVirId(Integer virId) {
		this.virId = virId;
	}

	public Integer getCheckRole() {
		return checkRole;
	}

	public void setCheckRole(Integer checkRole) {
		this.checkRole = checkRole;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	
}
