This commit is contained in:
@@ -7,14 +7,11 @@ import (
|
||||
// 表名常量(遵循小写+下划线的命名规范)
|
||||
const TableNameSignInRecord = "player_sign_in_log"
|
||||
|
||||
// SignInRecord 玩家签到明细记录表
|
||||
// 记录玩家每一次的签到行为,关联签到活动表
|
||||
// SignInRecord 玩家签到进度记录表
|
||||
type SignInRecord struct {
|
||||
Base
|
||||
|
||||
// 核心关联字段
|
||||
PlayerID uint32 `gorm:"not null;index:idx_player_id;comment:'玩家ID'" json:"player_id"`
|
||||
SignInID uint32 `gorm:"not null;index:idx_sign_in_id;comment:'关联的签到活动ID(对应player_sign_in表的SignInID)'" json:"sign_in_id"`
|
||||
|
||||
IsCompleted bool `gorm:"not null;default:false;comment:'签到是否完成(0-未完成 1-已完成)'" json:"is_completed"`
|
||||
ContinuousDays uint32 `gorm:"not null;default:0;comment:'连续签到天数'" json:"continuous_days"`
|
||||
|
||||
Reference in New Issue
Block a user