diff --git a/server/wheelserver/model/chip.go b/server/wheelserver/model/chip.go index 365a4f5d..72f7125b 100644 --- a/server/wheelserver/model/chip.go +++ b/server/wheelserver/model/chip.go @@ -6,8 +6,8 @@ import ( ) type Chip struct { - Idx int64 `gorm:"column:idx;AUTO_INCREMENT"` - AccountId string `gorm:"column:account_id;primaryKey"` + Idx int64 `gorm:"column:idx;AUTO_INCREMENT;primaryKey"` + AccountId string `gorm:"column:account_id"` ItemId int32 `gorm:"column:item_id"` ItemNum int32 `gorm:"column:item_num"` ExpireTime int32 `gorm:"column:expiretime;<-:create"`