feat: 恢复表结构

This commit is contained in:
suziheng
2025-04-22 11:10:21 +08:00
parent 5f5521bc9a
commit abf9d113af
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ const (
type Redemption struct {
Id int `json:"id"`
UserId int `json:"user_id"`
Key string `json:"key" gorm:"type:char(32)"`
Key string `json:"key" gorm:"type:char(32);uniqueIndex"`
Status int `json:"status" gorm:"default:1"`
Name string `json:"name" gorm:"index"`
Quota int64 `json:"quota" gorm:"bigint;default:100"`