Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` Name string `gorm:"type:varchar(255);not null"` Lastname string `json:"lastname" binding:"required"` Password string `gorm:"not null"` Email string `gorm:"uniqueIndex;not null"` VerificationCode string Verified bool `gorm:"not null"` CreatedAt time.Time `gorm:"not null"` UpdatedAt time.Time `gorm:"not null"` }
func (*User) CheckPassword ¶
func (*User) HashPassword ¶
Click to show internal directories.
Click to hide internal directories.