From 25e9e07cc8cfa61d23f837309a487ab28053c22f Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Fri, 3 Oct 2025 20:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/infra/models/pig.go | 1 - 1 file changed, 1 deletion(-) 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 {