change log api to reflect data split into base and extension

This commit is contained in:
2025-04-24 15:48:21 +02:00
parent c07aa09dcd
commit 2e01287a71
13 changed files with 182 additions and 42 deletions

View File

@@ -3,7 +3,7 @@ package seeding
import (
"wagfarm-api/assets/seed"
"wagfarm-api/database"
"wagfarm-api/logs/base"
"wagfarm-api/logs/generic"
"wagfarm-api/taxonomy/seedingcondition"
"wagfarm-api/taxonomy/seedingtechnique"
@@ -12,7 +12,7 @@ import (
)
type SeedingLog struct {
base.FieldWorkLog
generic.FieldWorkLog
SeedID uint `gorm:"not null"`
Seed seed.Seed `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
TechniqueID uint `gorm:"not null"`