Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ID uint `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
Model : gorm.Model definition
type User ¶
type User struct { gorm.Model Email string `gorm:"type:varchar(100);not null"` Password string `gorm:"not null"` FirstName string `gorm:"type:varchar(50);not null"` LastName string `gorm:"type:varchar(50);not null"` Bio string Avatar string }
User : Model with injected fields `ID`, `CreatedAt`, `UpdatedAt`
func (*User) ComparePassword ¶
ComparePassword : compare the password
Click to show internal directories.
Click to hide internal directories.