datamodel done without validators
This commit is contained in:
@@ -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{}) }
|
||||
|
||||
Reference in New Issue
Block a user