feat: increase initial root user quota and support INITIAL_ROOT_TOKEN now (#1105)

This commit is contained in:
JustSong
2024-03-17 19:09:44 +08:00
parent 0eb2272bb7
commit 08831881f1
6 changed files with 27 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ type Redemption struct {
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:"default:100"`
Quota int64 `json:"quota" gorm:"bigint;default:100"`
CreatedTime int64 `json:"created_time" gorm:"bigint"`
RedeemedTime int64 `json:"redeemed_time" gorm:"bigint"`
Count int `json:"count" gorm:"-:all"` // only for api request