Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Anonymous = User{ID: 0}
Anonymous user object
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
ID uint64 `json:"id" gorm:"primaryKey"`
Email string `json:"email"`
Password string `json:"password"`
RequiredPasswordReset bool `json:"required_password_reset"`
Approve models.ApproveStatus `gorm:"column:approve_status" db:"approve_status" json:"approve_status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `json:"deleted_at"`
}
User direct defenition
func (*User) CreatorUserID ¶
CreatorUserID returns the user id
func (*User) IsAnonymous ¶
IsAnonymous user object nolint:unused // temporary
func (*User) RBACResourceName ¶
RBACResourceName returns the name of the resource for the RBAC
type UserPasswordReset ¶
type UserPasswordReset struct {
UserID uint64 `json:"user_id" gorm:"primaryKey"`
Token string `json:"token" gorm:"index:,unique" limit:"128"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
}
UserPasswordReset direct defenition
func (*UserPasswordReset) TableName ¶
func (u *UserPasswordReset) TableName() string
TableName returns the name in database
Click to show internal directories.
Click to hide internal directories.