修改用户username字段为普通索引

This commit is contained in:
dushixiang committed 2021-01-30 00:25:46 +08:00
1 parent 30d512cfe7
commit c2b8f8629d
1 file changed
+1 -1
+1 -1
View File
@@ -13,7 +13,7 @@ const (
type User struct {
ID string `gorm:"primary_key" json:"id"`
Username string `gorm:"uniqueIndex" json:"username"`
Username string `gorm:"index" json:"username"`
Password string `json:"password"`
Nickname string `json:"nickname"`
TOTPSecret string `json:"-"`