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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.