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

This commit is contained in:
CaIon committed 2024-05-16 16:10:25 +08:00
1 parent 80740d8c28
commit 9df64bcad4
2 files changed
+7 -7

No files matched your search

+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" `