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"` }