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

import java.io.Serializable;
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;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @project sqltoy-quickstart
 * @author BJTU
 * @version 1.0.0 
 */
@Schema(name="TSysRoleDept",description="角色和部门关联表")
@Data
@Accessors(chain = true)
@Entity(tableName="t_sys_role_dept",comment="角色和部门关联表",pk_constraint="PRIMARY")
public class TSysRoleDept implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6165163577664492276L;
/*---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:INT
	 */
	@Schema(name="deptId",description="部门ID",nullable=false)
	@Id
	@Column(name="dept_id",comment="部门ID",length=10L,type=java.sql.Types.INTEGER,nullable=false)
	private Integer deptId;
	
	/** default constructor */
	public TSysRoleDept() {
	}
	
	/** pk constructor */
	public TSysRoleDept(Integer roleId,Integer deptId)
	{
		this.roleId=roleId;
		this.deptId=deptId;
	}
/*---end-auto-generate-don't-update-this-area--*/
}
