feat: the format of key is now constant with that of OpenAI

This commit is contained in:
JustSong
2023-06-03 10:53:25 +08:00
parent b28b49bb79
commit 4172e9b682
4 changed files with 29 additions and 4 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
type Token struct {
Id int `json:"id"`
UserId int `json:"user_id"`
Key string `json:"key" gorm:"type:char(32);uniqueIndex"`
Key string `json:"key" gorm:"type:char(48);uniqueIndex"`
Status int `json:"status" gorm:"default:1"`
Name string `json:"name" gorm:"index" `
CreatedTime int64 `json:"created_time" gorm:"bigint"`