diff --git a/pkg/models/user.go b/pkg/models/user.go index a146366..4273aec 100644 --- a/pkg/models/user.go +++ b/pkg/models/user.go @@ -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