15 lines
650 B
Go
15 lines
650 B
Go
package seeding
|
|
|
|
import "wagfarm-api/log/base"
|
|
|
|
type SeedingLog struct {
|
|
base.FieldWorkLog
|
|
SeedID uint `gorm:"not null"`
|
|
Seed asset.Seed `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
|
|
TechniqueID uint `gorm:"not null"`
|
|
Technique taxonomy.SeedingTechnique `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
|
|
Amount float64 `gorm:"not null"` // in units/ha
|
|
ConditionsID uint `gorm:"not null"`
|
|
Conditions taxonomy.SeedingCondition `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;not null"`
|
|
}
|