import { DefaultSession } from "next-auth";

declare module "next-auth" {
  interface User {
    id: string;
    email?: string | null;
    name?: string | null;
    image?: string | null;
    role?: string;
    subscription?: {
      status: string;
      plan?: string;
      currentPeriodEnd?: string;
      expiresAt?: string;
    };
  }

  interface Session extends DefaultSession {
    user: User;
  }
}