datastore/internal/model/entities.go
Luís Murta a7359aacea
Transaction entity and DB Handle
This patch introduces the Transaction entity.
It also creates a placeholder Handle type with a Transactions method as
a placeholder for the future DB adaptation.

Incorporates the new types into the retriveTransactions HTTP handler.
2024-02-06 19:44:52 +00:00

16 lines
208 B
Go

package model
import (
"time"
"github.com/shopspring/decimal"
)
type Transaction struct {
Id int64
Date time.Time
Description string
Value decimal.Decimal
Category string
}