Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserModel ¶
type UserModel struct { gorm.Model Name string `gorm:"type:varchar(100);not null" json:"name"` Email string `gorm:"type:varchar(255);uniqueIndex;not null" json:"email"` HashedPassword *string `gorm:"column:hashed_password" json:"-"` GithubID *string `gorm:"column:github_id;unique" json:"github_id"` LastLoginAt *time.Time ` json:"last_login_at"` Role UserRole `gorm:"type:varchar(20);default:'user'" json:"role"` }
func (*UserModel) UpdateFromPb ¶
func (u *UserModel) UpdateFromPb(req *userpb.UpdateUserRequest)
Click to show internal directories.
Click to hide internal directories.