import "next-auth";

declare module "next-auth" {
  interface Session {
    user: {
      id: string;
      email: string;
      role: string;
      establishmentId?: string;
    };
  }

  interface User {
    id: string;
    email: string;
    role: string;
    establishmentId?: string;
  }
}

declare module "next-auth/jwt" {
  interface JWT {
    role?: string;
    establishmentId?: string;
  }
}
