package com.yuchen.saas.manage.system.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.tenant.mp.TenantEntity;

/**
 * <p>
 * 用户(角色)自定义权限关联表
 * </p>
 *
 * @author miaoqs
 * @since 2023-09-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("nest_user_role_scope")
@ApiModel(value="NestUserRoleScope对象", description="用户(角色)自定义权限关联表")
public class NestUserRoleScope extends TenantEntity {

    /**
     * 用户id
     */
    @ApiModelProperty(name = "orgUserId", value = "用户id")
    private Long orgUserId;
    /**
     * 权限组id
     */
    @ApiModelProperty(name = "scopeId", value = "权限组id")
    private Long scopeId;
    /**
     * 组织id
     */
    @ApiModelProperty(name = "deptId", value = "组织id")
    private Long deptId;

}
