package cn.com.qmth.stmms.biz.basic.model;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.com.qmth.stmms.common.enums.Role;

@Entity
@Table(name = "b_role_info")
public class RoleInfo implements Serializable {

    private static final long serialVersionUID = -6288949236298877031L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue
    private Integer id;
    
    @Column(name = "school_id",nullable = false)
    private Integer schoolId;
    
    @Enumerated(EnumType.STRING)
    @Column(name = "code",nullable = false)
    private Role code;

    /**
     * 权限名称
     */
    @Column(name = "name",nullable = false)
    private String name;

    /**
     * 排序
     */
    @Column(name = "seq",nullable = false)
    private Integer seq;
    

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "updater_id")
    private Integer updaterId;

	public Integer getId() {
		return id;
	}

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

	public Role getCode() {
		return code;
	}

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

	public String getName() {
		return name;
	}

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

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdaterId() {
		return updaterId;
	}

	public void setUpdaterId(Integer updaterId) {
		this.updaterId = updaterId;
	}

	public Integer getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(Integer schoolId) {
		this.schoolId = schoolId;
	}

	public RoleInfo() {
		super();
	}

	public RoleInfo(Integer schoolId, Role code, String name, Integer seq) {
		super();
		this.schoolId = schoolId;
		this.code = code;
		this.name = name;
		this.seq = seq;
	}
    

    
}
