forked from nixcn/nixcn-cms
@@ -10,12 +10,12 @@ type User struct {
|
||||
Id uint `json:"id" gorm:"primarykey;autoincrement"`
|
||||
UUID uuid.UUID `json:"uuid" gorm:"type:uuid;uniqueindex;not null"`
|
||||
UserId uuid.UUID `json:"user_id" gorm:"type:uuid;uniqueindex;not null"`
|
||||
Email string `json:"email" gorm:"uniqueindex;not null"`
|
||||
Type string `json:"type" gorm:"not null"`
|
||||
Email string `json:"email" gorm:"type:varchar(255);uniqueindex;not null"`
|
||||
Type string `json:"type" gorm:"type:varchar(32);index;not null"`
|
||||
Nickname string `json:"nickname"`
|
||||
Subtitle string `json:"subtitle"`
|
||||
Avatar string `json:"avatar"`
|
||||
Checkin time.Time `json:"checkin"`
|
||||
Checkin time.Time `json:"checkin" gorm:"index"`
|
||||
}
|
||||
|
||||
func (self *User) GetByEmail(email string) error {
|
||||
|
||||
Reference in New Issue
Block a user