package fertilizing import ( "wagfarm-api/log/base" ) type FertilizingLog struct { base.ExtendedLog FertilizerID uint `gorm:"not null"` Fertilizer asset.Fertilizer `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"` Amount float64 `gorm:"not null"` // in units of the fertilizer }