package common.model.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings("serial")
public abstract class BaseRole<M extends BaseRole<M>> extends Model<M> implements IBean {
	/**
	 * 权限id
	 */
	public void setId(java.lang.Integer id) {
		set("id", id);
	}
	
	/**
	 * 权限id
	 */
	public java.lang.Integer getId() {
		return getInt("id");
	}
	/**
	 * 权限备注
	 */
	public void setNote(java.lang.String note) {
		set("note", note);
	}
	
	/**
	 * 权限备注
	 */
	public java.lang.String getNote() {
		return getStr("note");
	}
	
	public boolean save() {
		set("create_time", System.currentTimeMillis());
		
		return super.save();
	}
	
	public boolean update() {
		set("update_time", System.currentTimeMillis());
		
		return super.update();
	}

	public boolean delete() {
		set("is_deleted", 1);

		return super.update();
	}
}