Use pgx
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgtype"
|
||||
)
|
||||
|
||||
type Account struct {
|
||||
@ -30,8 +31,8 @@ type Payee struct {
|
||||
type Transaction struct {
|
||||
ID uuid.UUID
|
||||
Date time.Time
|
||||
Memo sql.NullString
|
||||
Amount string
|
||||
Memo string
|
||||
Amount pgtype.Numeric
|
||||
AccountID uuid.UUID
|
||||
PayeeID uuid.NullUUID
|
||||
}
|
||||
|
Reference in New Issue
Block a user