health score
This commit is contained in:
@@ -186,6 +186,17 @@ type Products struct {
|
||||
// Set by the service, not the repository — see decorateNutrition.
|
||||
Nutrition *NutritionPanel `json:"nutrition,omitempty" gorm:"-"`
|
||||
|
||||
// The health score, for the same product screen and from the same record.
|
||||
//
|
||||
// `gorm:"-"`, absent when there is nothing safe to show, and independent of
|
||||
// Nutrition above — a product can be scored with no figures published, and
|
||||
// carry figures with no score.
|
||||
//
|
||||
// WITHHELD on anything that is not food. The upstream per-product endpoint
|
||||
// is not gated for edibility and has rated insecticide 80/100; see
|
||||
// models.IsEdible.
|
||||
Healthscore *HealthScore `json:"healthscore,omitempty" gorm:"-"`
|
||||
|
||||
Productdesc string `json:"productdesc,omitempty"`
|
||||
Productsku string `json:"productsku,omitempty"`
|
||||
Brandid int `json:"brandid,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user