diff --git a/db/migrations/20230703120000_add_tx_entry_type.up.sql b/db/migrations/20230703120000_add_tx_entry_type.up.sql index ef31135..2a410a0 100644 --- a/db/migrations/20230703120000_add_tx_entry_type.up.sql +++ b/db/migrations/20230703120000_add_tx_entry_type.up.sql @@ -1,3 +1,2 @@ alter table transaction_entries -add column entry_type character varying, -add column fee_reserve_id bigint; \ No newline at end of file +add column entry_type character varying; \ No newline at end of file diff --git a/db/models/transactionentry.go b/db/models/transactionentry.go index 95c7594..2abbe52 100644 --- a/db/models/transactionentry.go +++ b/db/models/transactionentry.go @@ -23,7 +23,6 @@ type TransactionEntry struct { ParentID int64 `bun:",nullzero"` Parent *TransactionEntry `bun:"rel:belongs-to"` CreditAccountID int64 `bun:",notnull"` - FeeReserveID int64 `bun:",nullzero"` FeeReserve *TransactionEntry `bun:"rel:belongs-to"` CreditAccount *Account `bun:"rel:belongs-to,join:credit_account_id=id"` DebitAccountID int64 `bun:",notnull"`