diff --git a/internal/infra/models/pig.go b/internal/infra/models/pig.go index 4c5586f..a954799 100644 --- a/internal/infra/models/pig.go +++ b/internal/infra/models/pig.go @@ -40,7 +40,6 @@ type PigBatch struct { CurrentCount int `gorm:"not null;comment:当前存栏数量"` CurrentSickCount int `gorm:"not null;default:0;comment:当前病猪数量"` Status PigBatchStatus `gorm:"size:20;not null;index;comment:批次状态"` - Pens []Pen `gorm:"foreignKey:PigBatchID;comment:所在圈舍ID"` } func (PigBatch) TableName() string {