models

package
v0.0.0-...-fc1c61b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: MIT 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 {
	UUID     uuid.UUID
	UserUUID uuid.UUID
	Name     string
	Currency iso4217.Currency
}

type CategorySum

type CategorySum struct {
	AccountUUID uuid.UUID
	UserUUID    uuid.UUID
	From        time.Time
	To          time.Time
	Category    string
	Sum         float64
	Count       uint64
}

type StatsTimeRange

type StatsTimeRange struct {
	AccountUUID uuid.UUID
	UserUUID    uuid.UUID
	From        time.Time
	To          time.Time
	Inflow      float64
	Outflow     float64
	Profit      float64
	Count       uint64
}

type StatsTimeRangeCategories

type StatsTimeRangeCategories struct {
	AccountUUID uuid.UUID
	UserUUID    uuid.UUID
	From        time.Time
	To          time.Time
	Inflow      float64
	Outflow     float64
	Profit      float64
	Count       uint64
	Categories  []string
}

type Transaction

type Transaction struct {
	UUID        uuid.UUID
	AccountUUID uuid.UUID
	UserUUID    uuid.UUID
	Time        time.Time
	Amount      float64
	Title       string
	Category    string
}

type User

type User struct {
	UUID uuid.UUID
}

Jump to

Keyboard shortcuts

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