// ── User object as stored in localStorage (full shape from your data) ──────────
export interface User {
    _id: string;
    address: string;
    avatar: string;
    countryCode: string | null;
    createdAt: string;
    degree: string;
    email: string;
    fullname: string;
    hospitalAddress: string;
    hospitalName: string;
    isEmailVerified: boolean;
    isLogout: boolean;
    lastLogin: string;
    oneSignalToken: string | null;
    otp: string | null;
    phone: string;
    provider: string;
    providerId: string;
    registrationNo: string;
    role: number;
    specialisation: string;
    subscriptionEndDate: string | null;
    subscriptionPlan: string;
    timing: string;
    title: string;
    updatedAt: string;
    user_type: number;
    __v: number;
}

// ── Payload sent to /user/update-profile ────────────────────────────────────────
export interface UpdateProfilePayload {
    fullname: string;
    title: string;
    degree: string;
    specialisation: string;
    phoneNumber: string;
    email: string;
}