package cn.palmte.work.model;

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

@Entity
@Table(name = "sys_role")
public class SysRole {
    //系统管理员
    public static final int ROLE_TYPE_SYSTEM = 0;
    //普通管理员
    public static final int ROLE_TYPE_NORMAL = 1;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    @Column(name = "name")
    private String name;

    @Column(name = "type")
    private int type;

    @Column(name = "level")
    private int level;

    @Column(name = "is_enable")
    private int isEnable;

    @Column(name = "is_deleted")
    private int deleted;

    @Column(name = "created_by")
    private int createdBy;

    @Column(name = "created_time")
    private Date createdTime;

    @Column(name = "last_updated_by")
    private int lastUpdatedBy;

    @Column(name = "last_updated_time")
    private Date lastUpdatedTime;

    public SysRole() {
    }

    public int getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

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

    public int getType() {
        return type;
    }

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

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getIsEnable() {
        return isEnable;
    }

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

    public int getDeleted() {
        return deleted;
    }

    public void setDeleted(int deleted) {
        this.deleted = deleted;
    }

    public int getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(int createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public int getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(int lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }
}
