fix: try to fix sqlite database migration (#231)

This commit is contained in:
CaIon
2024-05-16 16:10:25 +08:00
parent 80740d8c28
commit 9df64bcad4
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
type Token struct {
Id int `json:"id"`
UserId int `json:"user_id"`
UserId int `json:"user_id" gorm:"index"`
Key string `json:"key" gorm:"type:char(48);uniqueIndex"`
Status int `json:"status" gorm:"default:1"`
Name string `json:"name" gorm:"index" `