修改用户username字段为普通索引
This commit is contained in:
parent
30d512cfe7
commit
c2b8f8629d
@ -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:"-"`
|
||||
|
Loading…
Reference in New Issue
Block a user