fix oauth register #26 #23

This commit is contained in:
ljw
2024-10-29 15:31:27 +08:00
parent 991fc86fa6
commit 001884a4d8
4 changed files with 30 additions and 33 deletions

View File

@@ -2,7 +2,7 @@ package model
type User struct {
IdModel
Username string `json:"username" gorm:"default:'';not null;index,unique"`
Username string `json:"username" gorm:"default:'';not null;uniqueIndex"`
Password string `json:"-" gorm:"default:'';not null;"`
Nickname string `json:"nickname" gorm:"default:'';not null;"`
Avatar string `json:"avatar" gorm:"default:'';not null;"`