package com.rj.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户角色关联表
 * </p>
 *
 * @author 系统生成
 * @since 2025-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_role")
@Schema(description="用户角色关联表")
public class UserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "用户编号")
    @TableField("user_id")
    private Integer userId;

    @Schema(description = "角色编号")
    @TableField("role_id")
    private Integer roleId;

    @Schema(description = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

}
