models

package
v0.0.0-...-9e87bf8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidStates = map[string]bool{/* contains filtered or unexported fields */}

Functions

This section is empty.

Types

type SourceType

type SourceType struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Transaction

type Transaction struct {
	ID            string          `db:"id"`
	TransactionID string          `db:"transaction_id"`
	State         string          `db:"state"`
	Amount        decimal.Decimal `db:"amount"`
	SourceType    SourceType      `db:"source_id"`
	Processed     bool            `db:"processed"`
	User          User            `db:"user_id"`
	CreatedAt     time.Time       `db:"created_at"`
	UpdatedAt     time.Time       `db:"updated_at"`
}

type User

type User struct {
	ID      string          `json:"id"`
	Balance decimal.Decimal `json:"balance"`
	Account string          `json:"account_number"`
}

Jump to

Keyboard shortcuts

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