Versions in this module Expand all Collapse all v0 v0.0.2 Apr 8, 2026 Changes in this version + const Anonymous + const Black + const Blue + const Red + var ErrInvalidRoleSpecified = errors.New("incorrect role specified") + var ErrNameMustBeAlphanumeric = errors.New("name must be alphanumeric") + type User struct + ID uuid.UUID + PasswordHash string + Role string + TeamID uuid.UUID + Username string + func (u *User) BeforeCreate(tx *gorm.DB) (err error) + func (u *User) BeforeSave(_ *gorm.DB) (err error) + func (u *User) IsCorrectPassword(password string) bool