Recount-Server/types/types.go

42 lines
1.3 KiB
Go
Raw Normal View History

2024-01-15 19:26:51 -08:00
package types
import (
"database/sql"
"time"
)
type Transaction struct {
Id int `db:"trns_id" json:"Id"`
Amount string `db:"trns_amount" json:"Amount"`
Description sql.NullString `db:"trns_description" json:"Description"`
Account int `db:"trns_account" json:"Account"`
Bucket sql.NullInt64 `db:"trns_bucket" json:"Bucket"`
Date time.Time `db:"trns_date" json:"TransactionDate"`
}
type HumanLegibleTransaction struct {
Id int `db:"trns_id" json:"Id"`
Amount string `db:"trns_amount" json:"Amount"`
Description sql.NullString `db:"trns_description" json:"Description"`
AccountName sql.NullString `db:"account_name" json:"AccountName"`
Account int `db:"trns_account" json:"Account"`
Bucket sql.NullInt64 `db:"trns_bucket" json:"Bucket"`
BucketName sql.NullString `db:"bucket_name" json:"BucketName"`
Date time.Time `db:"trns_date" json:"TransactionDate"`
}
2024-01-17 19:58:31 -08:00
2024-02-10 10:52:09 -08:00
type QuickTransactionTypes struct {
DisplayName string
}
2024-01-17 19:58:31 -08:00
type ChartjsData struct {
Labels []string `json:"labels"`
2024-01-19 21:05:08 -08:00
Data []int `json:"data"`
2024-01-18 18:57:03 -08:00
}
2024-01-19 21:05:08 -08:00
type TwoIntsItem struct {
Item1 int
Item2 int
2024-01-17 19:58:31 -08:00
}