From 2bd2a7a99a52754c164b69b9bf3e1b342e0a1bfa Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 20 Nov 2024 15:54:23 +0800 Subject: [PATCH] 1 --- server/wheelserver/model/chip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"`