models

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomUser

type CustomUser struct {
	models.User // Embed base user model
	FirstName   string
	LastName    string
	DateOfBirth *time.Time
	Address     string
	CompanyName string
	Department  string
	Role        string
}

CustomUser extends the base user model with additional fields

func (*CustomUser) GetCompanyInfo

func (u *CustomUser) GetCompanyInfo() (string, string)

GetCompanyInfo is a custom method specific to CustomUser

func (*CustomUser) GetEmail

func (u *CustomUser) GetEmail() string

GetEmail implements interfaces.User

func (*CustomUser) GetFullName

func (u *CustomUser) GetFullName() string

GetFullName is a custom method specific to CustomUser

func (*CustomUser) GetID

func (u *CustomUser) GetID() uuid.UUID

GetID implements interfaces.User

func (*CustomUser) GetLastLoginAt

func (u *CustomUser) GetLastLoginAt() *time.Time

GetLastLoginAt implements interfaces.User

func (*CustomUser) GetMetadata

func (u *CustomUser) GetMetadata() map[string]any

GetMetadata implements interfaces.User

func (*CustomUser) GetPasswordHash

func (u *CustomUser) GetPasswordHash() string

GetPasswordHash implements interfaces.User

func (*CustomUser) GetPhoneNumber

func (u *CustomUser) GetPhoneNumber() string

GetPhoneNumber implements interfaces.User

func (*CustomUser) GetUsername

func (u *CustomUser) GetUsername() string

GetUsername implements interfaces.User

func (*CustomUser) IsActive

func (u *CustomUser) IsActive() bool

IsActive implements interfaces.User

type CustomUserFactory

type CustomUserFactory struct{}

CustomUserFactory creates instances of CustomUser

func NewCustomUserFactory

func NewCustomUserFactory() *CustomUserFactory

NewCustomUserFactory creates a new CustomUserFactory

func (*CustomUserFactory) GetSchema

func (f *CustomUserFactory) GetSchema() any

GetSchema implements interfaces.UserRepositoryFactory

func (*CustomUserFactory) GetTableName

func (f *CustomUserFactory) GetTableName() string

GetTableName implements interfaces.UserRepositoryFactory

func (*CustomUserFactory) NewUser

func (f *CustomUserFactory) NewUser() interfaces.User

NewUser implements interfaces.UserRepositoryFactory

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL