Table core.bank_accounts
This table stores information on various Bank A/cs and other associated information.
# Column Name Nullable Data Type Max Length Description
1account_idbigint0The primary key of this table, which is also a serial field.
2maintained_by_user_idinteger0Foreign key to the table office.users.
3office_idinteger0
4bank_namecharacter varying128The name of the bank.
5bank_branchcharacter varying128The name of the branch.
6bank_contact_numbercharacter varying128The contact number of the bank.
7bank_addresstext0The address of the bank.
8bank_account_numbercharacter varying128The bank account number.
9bank_account_typecharacter varying128The type of bank account.
10relationship_officer_namecharacter varying128The name of the relationship officer.
11audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
12audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
1 account_id bank_accounts_account_id_fkey core.accounts.account_id
2 maintained_by_user_id bank_accounts_maintained_by_user_id_fkey office.users.user_id
3 office_id bank_accounts_office_id_fkey office.offices.office_id
11 audit_user_id bank_accounts_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
bank_accounts_pkey postgres btree account_id

Check Constraints

Constraint Name Description
bank_accounts_account_id_chk
CHECK (core.get_account_master_id_by_account_id(account_id) = 10102)

Default Values

# Column Name Default
12 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description