定义model
This commit is contained in:
@@ -70,7 +70,7 @@ type PigBatchLog struct {
|
||||
AfterCount int `gorm:"not null;comment:变更后总数"`
|
||||
BeforeSickCount int `gorm:"not null;comment:变更前病猪数"`
|
||||
AfterSickCount int `gorm:"not null;comment:变更后病猪数"`
|
||||
Operator string `gorm:"size:50;comment:操作员"`
|
||||
OperatorID uint `gorm:"comment:操作员ID"`
|
||||
HappenedAt time.Time `gorm:"primaryKey;comment:事件发生时间"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user