export interface Warehouse {
  id: number;
  company_id: number;
  branch_id: number | null;
  code: string;
  name: string;
  name_en: string;
  name_ar: string;
  type: string;
  type_label: string;
  parent_warehouse_id: number | null;
  parent_warehouse: Warehouse | null;
  children: Warehouse[];
  manager_id: number | null;
  manager_name: string | null;
  address: string | null;
  phone: string | null;
  is_active: boolean;
  allow_negative_stock: boolean;
  account_id: number | null;
  notes: string | null;
  created_at: string;
  updated_at: string;
}

export interface CreateWarehouse {
  name: string;
  name_en?: string;
  name_ar?: string;
  type?: string;
  parent_warehouse_id?: number | null;
  branch_id?: number | null;
  manager_name?: string | null;
  address?: string | null;
  phone?: string | null;
  is_active?: boolean;
  allow_negative_stock?: boolean;
  account_id?: number | null;
  notes?: string | null;
}

export type UpdateWarehouse = Partial<CreateWarehouse>;
