export interface Product {
  id: number;
  organization_id: string;
  photo_url: string;
  name: string;
  description: string;
  created_at: string;
  price: number;
  category: string;
  updated_at: string;
}

export interface ProductFilters {
  page?: number;
  limit?: number;
  categories?: string;
  search?: string;
  sort?: string;
}

export interface ProductsResponse {
  success: boolean;
  time: string;
  message: string;
  total_products: number;
  offset: number;
  limit: number;
  products: Product[];
}

export interface ProductByIdResponse {
  success: boolean;
  time: string;
  message: string;
  product: Product;
}

export interface ProductMutationPayload {
  name: string;
  category: string;
  price: number;
  description: string;
  photoDataUrl?: string;
}
