Files
wagfarm/wagfarm-api/log/fertilizing/model.go
2025-04-15 22:36:22 +02:00

13 lines
328 B
Go

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
}