Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectAndMigrate ¶
Types ¶
type User ¶
type User struct { gorm.Model RoleID uint Role Role FirstName string `gorm:"size:255"` LastName string `gorm:"size:255"` Email string `gorm:"type:varchar(100);unique_index"` Username string `gorm:"type:varchar(30);unique_index"` HashedPassword string `gorm:"type:varchar(255)"` Gender string IsActive bool }
func (*User) PasswordIsCorrect ¶
func (*User) SetNewPassword ¶
Click to show internal directories.
Click to hide internal directories.