import { Branch } from './auth.model';

export interface UserListItem {
  id: number;
  name: string;
  name_en: string;
  name_ar: string;
  email: string;
  phone: string | null;
  locale: string;
  is_active: boolean;
  branches: Branch[];
  roles: string[];
  created_at: string;
  updated_at: string;
}

export interface UserDetail extends UserListItem {
  company: any;
  permissions: string[];
}

export interface UpdateUser {
  name_en?: string;
  name_ar?: string;
  email?: string;
  phone?: string;
  locale?: string;
  is_active?: boolean;
  branch_ids?: number[];
  role?: string;
}
