issue_29 #32
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user