Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordReset ¶
type PasswordReset struct { ID uint `gorm:"primary_key" json:"id"` UserID uint `gorm:"" json:"user_id"` Email string `gorm:"not null" json:"email"` Token string `gorm:"" json:"token"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"deleted_at" sql:"index"` }
type User ¶
type User struct { ID uint `gorm:"primary_key" json:"id"` FirstName string `gorm:"not null" json:"firstname" validate:"required"` LastName string `gorm:"not null" json:"lastname" validate:"required"` Username string `gorm:"not null;unique" json:"username" validate:"required"` Email string `gorm:"not null;unique_index" json:"email" validate:"required,email"` Login string `gorm:"-" json:"login,omitempty"` Role string `json:"role" csv:"ROLE,role"` Password string `gorm:"-" json:"password,omitempty" validate:"min=6"` PasswordHash string `gorm:"not null" json:"-"` Status string `gorm:"default:'ACTIVE'" json:"status"` Timezone string `gorm:"default:NULL" json:"timezone"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `json:"-" sql:"index"` }
Click to show internal directories.
Click to hide internal directories.