package models

func (Nutrient) TableName() string {
	return "nutrients"
}

type Nutrient struct {
	BaseModel
	Name        string       `json:"name" db:"name"`
	Description string       `json:"description" db:"description"`
	Supplements []Supplement `json:"supplements" db:"supplements" gorm:"many2many:supplement_nutrients;"`
	Categories  []Category   `json:"categories" db:"categories" gorm:"many2many:nutrient_categories;"`
}
