// User-related TypeScript interfaces

export interface User {
    id: number;
    name: string;
    email: string;
    phone: string | null;
    branch_id: number | null;
    email_verified_at: string | null;
    two_factor_secret: string | null;
    two_factor_recovery_codes: string | null;
    two_factor_confirmed_at: string | null;
    remember_token: string | null;
    created_at: string | null;
    updated_at: string | null;
    role: string; // 'Administrator' | 'Manager' | 'Teller' | 'Collector'

    // Relationships
    branch?: {
        id: number;
        name: string;
    };
    roles?: Array<{
        id: number;
        name: string;
    }>;
}

export interface UserFilters {
    search?: string;
    branch_id?: string;
    role?: string;
}
