users

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgreSQLRepository

func NewPostgreSQLRepository(db *gorm.DB) users.Repositories

func RepositoryFactory

func RepositoryFactory(dbCon *utils.DatabaseConnection) users.Repositories

func ToDomainBatch

func ToDomainBatch(user []Users) []*users.Domain

Types

type Users

type Users struct {
	ID       int `gorm:"primary_key;auto_increment;not_null"`
	PersonID int
	Email    string
	Password string
	// Role      types.UserRole `gorm:"type:UserRole;not_null"`
	Role      types.UserRole `gorm:"type:UserRoleTest;not_null"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
}

func FromDomain

func FromDomain(domain users.Domain) *Users

func (*Users) ToDomain

func (user *Users) ToDomain() *users.Domain

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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