Compare commits

...

2 Commits

Author SHA1 Message Date
徐瑞东
ebcbe8afd2 Merge 4a362caae6 into cba82404ae 2024-09-21 22:57:49 +08:00
徐瑞东
4a362caae6 fix: modify the type of token models to be text 2024-08-23 17:55:32 +08:00

View File

@@ -30,7 +30,7 @@ type Token struct {
RemainQuota int64 `json:"remain_quota" gorm:"bigint;default:0"`
UnlimitedQuota bool `json:"unlimited_quota" gorm:"default:false"`
UsedQuota int64 `json:"used_quota" gorm:"bigint;default:0"` // used quota
Models *string `json:"models" gorm:"default:''"` // allowed models
Models *string `json:"models" gorm:"type:text"` // allowed models
Subnet *string `json:"subnet" gorm:"default:''"` // allowed subnet
}