This commit is contained in:
2025-11-03 12:24:01 +02:00
commit 0806865287
177 changed files with 18453 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package models
func (NutrientCategory) TableName() string {
return "nutrient_categories"
}
type NutrientCategory struct {
BaseModel
CategoryID ULID `json:"categoryId" db:"category_id"`
NutrientID ULID `json:"nutrientId" db:"nutrient_id"`
Category Category `json:"category" db:"category" gorm:"foreignKey:CategoryID"`
Nutrient Nutrient `json:"nutrient" db:"nutrient" gorm:"foreignKey:NutrientID"`
}