/**
 *@Generated by sagacity-quickvo 5.0
 */
package cn.pojo.entity;

import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.orm.sqltoy.config.annotation.Entity;
import cn.orm.sqltoy.config.annotation.Id;
import cn.orm.sqltoy.config.annotation.Column;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysRolePerm",description="角色权限表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_role_perm",comment="角色权限表",pk_constraint="PRIMARY")
public class TSysRolePerm implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8696448915292167752L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:INT
	 */
	@Schema(name="roleId",description="角色ID",nullable=false)
	@Id
	@Column(name="role_id",comment="角色ID",length=10L,type=java.sql.Types.INTEGER,nullable=false)
	private Integer roleId;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="menuId",description="菜单ID",nullable=false)
	@Id
	@Column(name="menu_id",comment="菜单ID",length=200L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String menuId;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="component",description="顶级路由出口",nullable=true)
	@Column(name="component",comment="顶级路由出口",length=200L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String component;
	
	/**
	 * jdbcType:VARCHAR
	 */
	@Schema(name="perm",description="按钮权限",nullable=true)
	@Column(name="perm",comment="按钮权限",length=200L,defaultValue="",type=java.sql.Types.VARCHAR,nullable=true)
	private String perm;
	
	/** default constructor */
	public TSysRolePerm() {
	}
	
	/** pk constructor */
	public TSysRolePerm(Integer roleId,String menuId)
	{
		this.roleId=roleId;
		this.menuId=menuId;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
