wrappers

package
v0.0.0-...-dafc34e Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountingEntity

type AccountingEntity struct {
	models.BaseModel

	Label       string `db:"label" json:"label"`
	Description string `db:"description" json:"description"`
}

func (*AccountingEntity) TableName

func (a *AccountingEntity) TableName() string

type Item

type Item struct {
	models.BaseModel

	Parent       string  `db:"parent" json:"parent"`
	ProfileImage string  `db:"profileImage" json:"profileImage"`
	SKU          string  `db:"sku" json:"sku"`
	Icon         string  `db:"icon" json:"icon"`
	Label        string  `db:"label" json:"label"`
	Unit         string  `db:"unit" json:"unit"`
	UnitPrice    float64 `db:"unitPrice" json:"unitPrice"`
	ExpiryInSecs int     `db:"expiryInSecs" json:"expiryInSecs"`
}

func (*Item) TableName

func (i *Item) TableName() string

type Recipe

type Recipe struct {
	models.BaseModel

	Item  string `db:"item" json:"item"`
	Label string `db:"label" json:"label"`
}

func (*Recipe) TableName

func (r *Recipe) TableName() string

type RecipeIngredient

type RecipeIngredient struct {
	models.BaseModel

	Recipe   string  `db:"recipe" json:"recipe"`
	Item     string  `db:"item" json:"item"`
	Quantity float64 `db:"quantity" json:"quantity"`
	Unit     string  `db:"unit" json:"unit"`
}

func (*RecipeIngredient) TableName

func (r *RecipeIngredient) TableName() string

type Tag

type Tag struct {
	models.BaseModel

	Label string `db:"label" json:"label"`
}

func (*Tag) TableName

func (t *Tag) TableName() string

type Transaction

type Transaction struct {
	models.BaseModel

	Description string  `db:"description" json:"description"`
	Amount      float64 `db:"amount" json:"amount"`
	From        string  `db:"from" json:"from"`
	Into        string  `db:"into" json:"into"`
}

Transaction is a wrapper for an accounting transaction.

func (*Transaction) TableName

func (t *Transaction) TableName() string

type Transfer

type Transfer struct {
	models.BaseModel

	Transaction string    `db:"transaction" json:"transaction"`
	From        string    `db:"from" json:"from"`
	Into        string    `db:"into" json:"into"`
	Overhead    float64   `db:"overhead" json:"overhead"`
	Description string    `db:"description" json:"description"`
	Committed   bool      `db:"committed" json:"committed"`
	Scheduled   time.Time `db:"scheduled" json:"scheduled"`
}

Transfer is a wrapper for a transfer record.

func (*Transfer) TableName

func (t *Transfer) TableName() string

type TransferItem

type TransferItem struct {
	models.BaseModel

	Transfer   string  `db:"transfer" json:"transfer"`
	Item       string  `db:"item" json:"item"`
	Quantity   int     `db:"quantity" json:"quantity"`
	Unit       string  `db:"unit" json:"unit"`
	UnitPrice  float64 `db:"unitPrice" json:"unitPrice"`
	TotalPrice float64 `db:"totalPrice" json:"totalPrice"`
}

TransferItem is a wrapper for a transfer item record.

func (*TransferItem) TableName

func (t *TransferItem) TableName() string

type Transmute

type Transmute struct {
	models.BaseModel

	Transaction string `db:"transaction" json:"transaction"`
	Recipe      string `db:"recipe" json:"recipe"`
	Warehouse   string `db:"warehouse" json:"warehouse"`
	Input       string `db:"input" json:"input"`
	Output      string `db:"output" json:"output"`
}

func (*Transmute) TableName

func (t *Transmute) TableName() string

type Unit

type Unit struct {
	models.BaseModel

	Label      string `db:"label" json:"label"`
	ShortLabel string `db:"shortlabel" json:"shortlabel"`
	Standard   bool   `db:"standard" json:"standard"`
}

func (*Unit) TableName

func (u *Unit) TableName() string

type UnitConversion

type UnitConversion struct {
	models.BaseModel

	From       string  `db:"from" json:"from"`
	Multiplier float64 `db:"multiplier" json:"multiplier"`
	Into       string  `db:"into" json:"into"`
}

func (*UnitConversion) TableName

func (u *UnitConversion) TableName() string

type Warehouse

type Warehouse struct {
	models.BaseModel

	AccountingEntity string `db:"accounting_entity" json:"accounting_entity"`
	Label            string `db:"label" json:"label"`
	Deleted          bool   `db:"deleted" json:"deleted"`
}

func (*Warehouse) TableName

func (w *Warehouse) TableName() string

type WarehouseStock

type WarehouseStock struct {
	models.BaseModel

	Warehouse string    `db:"warehouse" json:"warehouse"`
	Item      string    `db:"item" json:"item"`
	Quantity  int       `db:"quantity" json:"quantity"`
	Unit      string    `db:"unit" json:"unit"`
	UnitPrice float64   `db:"unit_price" json:"unit_price"`
	Virtual   bool      `db:"virtual" json:"virtual"`
	Sellable  bool      `db:"sellable" json:"sellable"`
	Expires   time.Time `db:"expires" json:"expires"`
}

func (*WarehouseStock) TableName

func (w *WarehouseStock) TableName() string

Jump to

Keyboard shortcuts

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