nutrition field
This commit is contained in:
@@ -26,9 +26,12 @@ type CatalogueProduct struct {
|
||||
FSSAILicense string `json:"fssai_license,omitempty"`
|
||||
Highlights PGStringArray `json:"highlights,omitempty"`
|
||||
Nutrients PGStringArray `json:"nutrients,omitempty"`
|
||||
SearchQuery string `json:"search_query,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||
// The structured panel, when the catalogue carries one. Nil falls back to
|
||||
// parsing Nutrients above — see NutritionFromLines.
|
||||
Nutrition *NutritionPanel `json:"nutrition,omitempty"`
|
||||
SearchQuery string `json:"search_query,omitempty"`
|
||||
CreatedAt time.Time `json:"created_at,omitempty"`
|
||||
UpdatedAt time.Time `json:"updated_at,omitempty"`
|
||||
}
|
||||
|
||||
// CatalogueBrand describes a brand available in the catalogue DB.
|
||||
|
||||
Reference in New Issue
Block a user