# Column Name Nullable Data Type Max Length Description
1transaction_detail_idbigint0
2transaction_master_idbigint0
3value_datedate0
4tran_typetransaction_type0
5account_idbigint0Foreign key to the table core.accounts.
6statement_referencetext0
7cash_repository_idinteger0
8currency_codecharacter varying12Foreign key to the table core.currencies.
9amount_in_currencymoney_strict0
10local_currency_codecharacter varying12
11erdecimal_strict0
12amount_in_local_currencymoney_strict0
13audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
14audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 transaction_master_id transaction_details_transaction_master_id_fkey transactions.transaction_master.transaction_master_id
5 account_id transaction_details_account_id_fkey core.accounts.account_id
7 cash_repository_id transaction_details_cash_repository_id_fkey office.cash_repositories.cash_repository_id
8 currency_code transaction_details_currency_code_fkey core.currencies.currency_code
10 local_currency_code transaction_details_local_currency_code_fkey core.currencies.currency_code
13 audit_user_id transaction_details_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
transaction_details_pkey postgres btree transaction_detail_id

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 transaction_detail_id nextval('transactions.transaction_details_transaction_detail_id_seq'::regclass)
14 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description
transactions.restrict_delete_trigger transactions.restrict_delete_trigger DELETE BEFORE 0 ROW
transactions.check_cash_balance_trigger transactions.check_cash_balance_trigger UPDATE BEFORE 0 ROW
transactions.check_cash_balance_trigger transactions.check_cash_balance_trigger INSERT BEFORE 0 ROW