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;

import javax.validation.constraints.NotNull;


/**
 * <p>
 * 人员角色默认权限关联表
 * </p>
 *
 * @author miaoqs
 * @since 2023-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("nest_user_role_def_scope")
@ApiModel(value="NestUserRoleDefScope对象", description="人员角色(默认权限)关联表")
public class NestUserRoleDefScope extends TenantEntity {

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(name = "orgUserId", value = "用户id")
    private Long orgUserId;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(name = "roleId", value = "角色id")
    private Long roleId;



}
