// Role DTOs - Matches Backend
export interface RoleResponseDto {
  id: string;
  name: string;
  description?: string;
  permissions: PermissionInfo[];
  _count?: {
    users: number;
  };
  createdAt: string;
  updatedAt: string;
}

export interface PermissionInfo {
  id: string;
  name: string;
  resource: string;
  action: string;
}

// Create/Update Role
export interface CreateRoleDto {
  name: string;
  description?: string;
}

export interface UpdateRoleDto {
  name?: string;
  description?: string;
}

// Role Permission Assignment
export interface RolePermissionResponseDto {
  id: string;
  roleId: string;
  permissionId: string;
  createdAt: string;
}
