Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
gorm.Model
Uuid uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
UserID uint
Email string `gorm:"unique;not null"`
VerifiedStatus string `gorm:"not null"`
}
func CreateEmail ¶
type User ¶
type User struct {
gorm.Model
Uuid uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4()"`
CognitoId uuid.UUID
Name string
Username string `gorm:"unique;not null"`
ProfilePic string
BioMessage string
Role string `gorm:"default:'user'"`
IsBanned bool `gorm:"default:false"`
AddressStreet string
AddressCity string
AddressZip string
Email string `gorm:"unique;not null"`
Password string `gorm:"not null"`
Birthday string
Verified bool `gorm:"not null"`
InviteID uint
OTP string
Emails []*Email
Passwords []*Password
}
func (*User) UpdateUserProfileFromModel ¶
Click to show internal directories.
Click to hide internal directories.