Import x-panel source
This commit is contained in:
11
database/model/lottery_win.go
Normal file
11
database/model/lottery_win.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// LotteryWin 用于记录用户的中奖历史
|
||||
type LotteryWin struct {
|
||||
ID int64 `gorm:"primaryKey"`
|
||||
UserID int64 `gorm:"index"` // Telegram 用户 ID
|
||||
Prize string // 奖品等级,如 "一等奖"
|
||||
WinDate time.Time // 中奖日期
|
||||
}
|
||||
Reference in New Issue
Block a user