Introduce own Numeric type and revert to stdlib from pgx

This commit is contained in:
2021-12-02 21:29:44 +00:00
parent 6f8a94ff5d
commit 4646356b2d
16 changed files with 136 additions and 57 deletions

View File

@ -7,7 +7,6 @@ import (
"time"
"github.com/google/uuid"
"github.com/jackc/pgtype"
)
type Account struct {
@ -32,7 +31,7 @@ type Transaction struct {
ID uuid.UUID
Date time.Time
Memo string
Amount pgtype.Numeric
Amount Numeric
AccountID uuid.UUID
PayeeID uuid.NullUUID
}