/**
 *@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="TSysRoleMenu",description="角色和菜单关联表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_role_menu",comment="角色和菜单关联表",pk_constraint="PRIMARY")
public class TSysRoleMenu implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3809627823454253230L;
/*---begin-auto-generate-don't-update-this-area--*/	
	/**
	 * jdbcType:BIGINT
	 */
	@Schema(name="roleId",description="角色ID",nullable=false)
	@Id
	@Column(name="role_id",comment="角色ID",length=19L,type=java.sql.Types.INTEGER,nullable=false)
	private Integer roleId;
	
	/**
	 * jdbcType:BIGINT
	 */
	@Schema(name="menuId",description="菜单ID",nullable=false)
	@Id
	@Column(name="menu_id",comment="菜单ID",length=19L,type=java.sql.Types.INTEGER,nullable=false)
	private Integer menuId;
	
	/** default constructor */
	public TSysRoleMenu() {
	}
	
	/** pk constructor */
	public TSysRoleMenu(Integer roleId,Integer menuId)
	{
		this.roleId=roleId;
		this.menuId=menuId;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
