package entity import ( "time" "github.com/google/uuid" "github.com/shopspring/decimal" ) const InvalidId TransactionId = 0 type TransactionId = uint64 type Transaction struct { Id TransactionId Date time.Time Description string Value decimal.Decimal Category *CategoryName } type Transactions = []Transaction type Bank struct { Id string Name string NordigenId uuid.UUID } type Banks = []Bank type CategoryName = string type Category struct { Name CategoryName Group *string } type Categories = []Category type CategoryGroup struct { Name string } type CategoryGroups = []CategoryGroup