/**
 * Portal Provider - Raw Types
 * 
 * Raw Prisma user data interface.
 * Domain doesn't depend on @prisma/client directly.
 */

import type { UserRole } from "../../schema";

/**
 * Raw Prisma user data from portal database
 * This interface matches the Prisma User schema but doesn't import from @prisma/client
 */
export interface PrismaUserRaw {
  id: string;
  email: string;
  passwordHash: string | null;
  role: UserRole;
  mfaSecret: string | null;
  emailVerified: boolean;
  failedLoginAttempts: number;
  lockedUntil: Date | null;
  lastLoginAt: Date | null;
  createdAt: Date;
  updatedAt: Date;
}

