datamodel done without validators

This commit is contained in:
matze committed 2025-04-17 12:33:53 +02:00
1 parent 284a40fac2
commit 5337da219e
58 files changed
+575 -227

No files matched your search

+3
View File
@@ -1,6 +1,7 @@
package ingredient
import (
"wagfarm-api/database"
"wagfarm-api/taxonomy/base"
"wagfarm-api/taxonomy/unit"
)
@@ -10,3 +11,5 @@ type Ingredient struct {
UnitID uint `gorm:"not null"`
Unit unit.Unit `gorm:"not null"`
}
func RegisterModels() { database.RegisterModel(&Ingredient{}) }