model

package
v0.0.0-...-17db60d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id types.UUID `gorm:"type:uuid;default:gen_random_uuid()"`

	Name string `gorm:"not null;"`

	Identifier     string                    `gorm:"not null;index;"`
	IdentifierType api.AccountIdentifierType `gorm:"not null;"`

	WalletId string `gorm:"not null;index;"`

	CreatedAt time.Time `gorm:"not null;index;"`
	UpdatedAt time.Time `gorm:"not null;index"`
}

type Payment

type Payment struct {
	Id types.UUID `gorm:"type:uuid;default:gen_random_uuid()"`

	Amount   types.Decimal `gorm:"not null;"`
	Currency string        `gorm:"not null;"`

	SourceWalletId *string
	Destination    types.UUID `gorm:"type:uuid;not null;index"`

	CreatedAt time.Time `gorm:"not null;index;"`
	UpdatedAt time.Time `gorm:"not null;index"`
}

Jump to

Keyboard shortcuts

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