export type ProductVariant = {
  id: string
  product_id: string
  name: string
  price_modifier: number
  cost: number
  metadata: Record<string, any>
  created_at: string
  updated_at: string
}

export type Product = {
  id: string
  organization_id: string
  category_id: string
  sku: string | null
  name: string
  description: string | null
  price: number
  cost: number
  business_type: string
  image_url: string | null
  printer_type: string
  metadata: Record<string, any>
  is_active: boolean
  created_at: string
  updated_at: string
  variants?: ProductVariant[]
}

export type Products = {
  products: Product[]
  total_count: number
  page: number
  limit: number
  total_pages: number
}

export type ProductVariantRequest = {
  name: string
  price_modifier: number
  cost: number
}

export type ProductRequest = {
  category_id: string
  sku: string
  name: string
  description: string
  price: number
  cost: number
  printer_type: string
  image_url: string
  variants: ProductVariantRequest[]
}
