123456789101112131415161718192021222324252627282930313233 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model
- import (
- "time"
- )
- const TableNameChapter = "chapter"
- // Chapter mapped from table <chapter>
- type Chapter struct {
- ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
- PlayerID int64 `gorm:"column:player_id;type:bigint(20);not null;index:player_id,priority:1" json:"player_id"` // 玩家ID
- ServerID int32 `gorm:"column:server_id;type:int(11);not null;index:server_id,priority:1;default:1" json:"server_id"` // 服务器ID
- ChapterID int32 `gorm:"column:chapter_id;type:int(11);not null" json:"chapter_id"` // 章节ID
- Degree string `gorm:"column:degree;type:varchar(125)" json:"degree"` // 难度系数
- ChallengeCount int32 `gorm:"column:challenge_count;type:int(11)" json:"challenge_count"` // 总挑战次数
- ClearanceCount int32 `gorm:"column:clearance_count;type:int(11)" json:"clearance_count"` // 通关次数
- FailCount int32 `gorm:"column:fail_count;type:int(11)" json:"fail_count"` // 失败次数
- Difficulty int32 `gorm:"column:difficulty;type:int(11)" json:"difficulty"` // 难度
- IsPass int32 `gorm:"column:is_pass;type:int(11)" json:"is_pass"` // 是否通关
- PassCount int32 `gorm:"column:pass_count;type:int(11)" json:"pass_count"` // 通关房间数
- CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"` // 创建时间
- UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"` // 更新时间
- }
- // TableName Chapter's table name
- func (*Chapter) TableName() string {
- return TableNameChapter
- }
|