From 1e45d70e8c8d124d6f87c8d8a904900538c80925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Tue, 25 May 2021 17:13:37 +0200 Subject: [PATCH] fixed Amount on Transaction model --- pkg/models/transactions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/models/transactions.go b/pkg/models/transactions.go index 278deea..dc86df9 100644 --- a/pkg/models/transactions.go +++ b/pkg/models/transactions.go @@ -9,6 +9,7 @@ type Transaction struct { TransactionTypeID string `json:"transactionTypeId", pg:"transaction_type_id"` TransactionType *TransactionType `json:"transactionType", pg:"rel:has-one, fk:transaction_type_id"` WalletID string `json:"walletId", pg:"wallet_id"` + Amount int `json:"amount", pg:"amount"` Wallet *Wallet `json:"wallet" pg:"rel:has-one, fk:wallet_id"` TransactionDate time.Time `json:"transactionDate" pg:"transaction_date"` }