infrastructure

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQueryRepository

func NewQueryRepository(db *bun.DB) application.QueryRepository

func NewRepository

func NewRepository(db *bun.DB, mediator mediator.Mediator) domain.Repository

Types

type User

type User struct {
	bun.BaseModel `bun:"table:user,alias:u"`
	ID            string       `bun:"id,pk"`
	Name          string       `bun:"name"`
	Password      []byte       `bun:"password" copier:"HashedPassword"`
	Email         string       `bun:"email"`
	Version       int          `bun:"version"`
	Deleted       bool         `bun:"deleted"`
	CTime         bun.NullTime `bun:"ctime"`
	MTime         time.Time    `bun:"mtime"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳