@mamoorali295/rbac
Version:
Complete RBAC (Role-Based Access Control) system for Node.js with Express middleware, NestJS integration, GraphQL support, MongoDB & PostgreSQL support, modern admin dashboard, TypeScript support, and dynamic permission management
16 lines (15 loc) • 444 B
TypeScript
import { Document, Types } from "mongoose";
import { IUserRole } from "./UserRole";
export interface IUser extends Document {
email: string;
name: string;
user_id: string;
role: Types.ObjectId | IUserRole;
createdAt?: Date;
updatedAt?: Date;
}
export declare const User: import("mongoose").Model<IUser, {}, {}, {}, Document<unknown, {}, IUser, {}> & IUser & Required<{
_id: unknown;
}> & {
__v: number;
}, any>;