Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint64 `json:"id" gorm:"primaryKey;autoIncrement:true"` FirstName string `json:"firstName" gorm:"not null"` LastName string `json:"lastName" gorm:"not null"` Email string `json:"email" gorm:"unique;not null"` Password string `json:"password,omitempty" gorm:"not null" sql:"-"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index"` }
func (*User) ComparePassword ¶
Click to show internal directories.
Click to hide internal directories.