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

@@ -23,7 +23,7 @@ const (
type Token struct {
Id int `json:"id"`
UserId int `json:"user_id"`
Key string `json:"key" gorm:"type:char(48)"`
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"`