Skip to content

Commit cf55b73

Browse files
committed
Merge branch 'main' into feat-proxy-key
2 parents 52d9ceb + 147693c commit cf55b73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/models/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type Group struct {
6666
// APIKey 对应 api_keys 表
6767
type APIKey struct {
6868
ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
69-
KeyValue string `gorm:"type:varchar(1024);not null;uniqueIndex:idx_group_key" json:"key_value"`
69+
KeyValue string `gorm:"type:varchar(700);not null;uniqueIndex:idx_group_key" json:"key_value"`
7070
GroupID uint `gorm:"not null;uniqueIndex:idx_group_key" json:"group_id"`
7171
Status string `gorm:"type:varchar(50);not null;default:'active'" json:"status"`
7272
RequestCount int64 `gorm:"not null;default:0" json:"request_count"`
@@ -82,7 +82,7 @@ type RequestLog struct {
8282
Timestamp time.Time `gorm:"not null;index" json:"timestamp"`
8383
GroupID uint `gorm:"not null;index" json:"group_id"`
8484
GroupName string `gorm:"type:varchar(255);index" json:"group_name"`
85-
KeyValue string `gorm:"type:varchar(1024)" json:"key_value"`
85+
KeyValue string `gorm:"type:varchar(700)" json:"key_value"`
8686
IsSuccess bool `gorm:"not null" json:"is_success"`
8787
SourceIP string `gorm:"type:varchar(64)" json:"source_ip"`
8888
StatusCode int `gorm:"not null" json:"status_code"`

0 commit comments

Comments
 (0)