Fix User model json fields
This commit is contained in:
parent
19d06c183f
commit
382c6df96c
|
@ -19,13 +19,13 @@ import (
|
|||
type User struct {
|
||||
ID uint64 `gorm:"primaryKey"`
|
||||
Username string `gorm:"uniqueIndex"`
|
||||
Email string `gorm:"uniqueIndex" json:"-"`
|
||||
Email string `gorm:"uniqueIndex"`
|
||||
HashedPassword string `json:"-"`
|
||||
IsAdmin bool `gorm:"index"`
|
||||
Status UserStatus `gorm:"index"` // active, disabled
|
||||
Visibility UserVisibility `gorm:"index"` // public, private
|
||||
Name *string
|
||||
Birthdate time.Time `json:"-"`
|
||||
Birthdate time.Time
|
||||
Certified bool
|
||||
Explicit bool `gorm:"index"` // user has opted-in to see explicit content
|
||||
InnerCircle bool `gorm:"index"` // user is in the inner circle
|
||||
|
|
Loading…
Reference in New Issue
Block a user