export type Unit = {
  id: string
  organization_id: string
  outlet_id: string
  name: string
  abbreviation: string
  is_active: boolean
  created_at: string
  updated_at: string
}

export type IngredientItem = {
  id: string
  organization_id: string
  outlet_id: string
  name: string
  unit_id: string
  cost: number
  stock: number
  is_semi_finished: boolean
  is_active: boolean
  metadata: Record<string, unknown> // bisa diganti jika metadata memiliki struktur spesifik
  created_at: string
  updated_at: string
  unit: Unit
}

export type Pagination = {
  page: number
  limit: number
  total_count: number
  total_pages: number
}

export type Ingredients = {
  data: IngredientItem[]
  pagination: Pagination
}

export type IngredientRequest = {
  name: string
  unit_id: string
  cost: number
  stock: number
  is_semi_finished: boolean
  outlet_id: string
}
