Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectAndMigrate ¶
Types ¶
type User ¶
type User struct { ID uint64 `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` RoleID uint64 `gorm:"not null"` Role Role `gorm:"not null"` FirstName string `gorm:"size:255"` LastName string `gorm:"size:255"` Email string `gorm:"type:varchar(100);index"` Username string `gorm:"type:varchar(30);index;unique"` HashedPassword string `gorm:"type:varchar(255)"` Gender string IsActive bool IsAdmin bool `gorm:"-"` }
func (*User) ConvertToProtoBuf ¶
func (*User) FillFromProtoBuf ¶
func (*User) PasswordIsCorrect ¶
func (*User) SetNewPassword ¶
Click to show internal directories.
Click to hide internal directories.