db

package
v0.0.0-...-0939d39 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineItem

type LineItem struct {
	DateTime time.Time      `json:"dateTime" db:"dateTime" gorm:"column:dateTime;primaryKey"`
	Payer    string         `json:"payer"    db:"payer"    gorm:"column:payer;primaryKey;index:payer"`
	Payee    string         `json:"payee"    db:"payee"    gorm:"column:payee;primaryKey;index:payee"`
	URN      string         `json:"urn"      db:"urn"      gorm:"column:urn;primaryKey;index:urn"`
	Kind     LineItemKind   `json:"kind"     db:"kind"     gorm:"column:kind;index:kind"`
	Usage    int64          `json:"usage"    db:"usage"    gorm:"column:usage"`
	Detail   datatypes.JSON `json:"detail"   db:"detail"   gorm:"column:detail"`
	Labels   datatypes.JSON `json:"labels"   db:"labels"   gorm:"column:labels;index:labels"`
}

type LineItemKind

type LineItemKind = uint8
const (
	DebitLineItemKind LineItemKind = iota
	CreditLineItemKind
)

Jump to

Keyboard shortcuts

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