package ingredient import ( "encoding/json" "time" ) // IngredientMapping is the canonical ingredient record used to link // user products, recipe ingredients, and Spoonacular data. type IngredientMapping struct { ID string `json:"id"` CanonicalName string `json:"canonical_name"` CanonicalNameRu *string `json:"canonical_name_ru"` SpoonacularID *int `json:"spoonacular_id"` Aliases json.RawMessage `json:"aliases"` // []string Category *string `json:"category"` DefaultUnit *string `json:"default_unit"` CaloriesPer100g *float64 `json:"calories_per_100g"` ProteinPer100g *float64 `json:"protein_per_100g"` FatPer100g *float64 `json:"fat_per_100g"` CarbsPer100g *float64 `json:"carbs_per_100g"` FiberPer100g *float64 `json:"fiber_per_100g"` StorageDays *int `json:"storage_days"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }