实现修改批次绑定的猪栏
This commit is contained in:
@@ -33,7 +33,7 @@ type Pen struct {
|
||||
gorm.Model
|
||||
PenNumber string `gorm:"not null;comment:猪栏的唯一编号, 如 A-01"`
|
||||
HouseID uint `gorm:"index;comment:所属猪舍ID"`
|
||||
PigBatchID uint `gorm:"index;comment:关联的猪批次ID"`
|
||||
PigBatchID *uint `gorm:"index;comment:关联的猪批次ID"`
|
||||
Capacity int `gorm:"not null;comment:设计容量 (头)"`
|
||||
Status PenStatus `gorm:"not null;index;comment:猪栏当前状态"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user