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

13 lines
487 B
Go

package cropprotection
import "wagfarm-api/log/base"
type CropProtectionLog struct {
base.FieldWorkLog
PesticideID uint `gorm:"not null"`
Pesticide taxonomy.Pesticide `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
Amount float64 `gorm:"not null"` // in units of the pesticide
PerformedByID uint `gorm:"not null"`
PerformedBy taxonomy.Worker `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
}