diff --git a/database/wheeldb.sql b/database/wheeldb.sql index ee2a6f3b..5635b4b7 100644 --- a/database/wheeldb.sql +++ b/database/wheeldb.sql @@ -71,6 +71,7 @@ CREATE TABLE `t_user` ( `dice` int(11) NOT NULL DEFAULT '0' COMMENT '骰子数', `spec_dice` int(11) NOT NULL DEFAULT '0' COMMENT '特殊骰子数(道具)', `last_present_dice_time` int(11) NOT NULL DEFAULT '0' COMMENT '最后赠送骰子时间', + `curr_grid` int(11) NOT NULL DEFAULT '0' COMMENT '当前格子', `createtime` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间', `modifytime` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间', UNIQUE KEY `uk_account_id` (`account_id`), diff --git a/server/wheelserver/model/user.go b/server/wheelserver/model/user.go index 3fe51c33..04a95b98 100644 --- a/server/wheelserver/model/user.go +++ b/server/wheelserver/model/user.go @@ -26,6 +26,7 @@ type User struct { Dice int32 `gorm:"column:dice"` SpecDice int32 `gorm:"column:spec_dice"` LastPresentDiceTime int32 `gorm:"column:last_present_dice_time"` + CurrGrid int32 `gorm:"column:curr_grid"` CreateTime int32 `gorm:"column:createtime;<-:create"` ModifyTime int32 `gorm:"column:modifytime"` }