Banks

Company Bank Accounts

This table stores detailed information about the company's bank accounts. Each record links a bank to a specific ledger account in the Chart of Accounts and a branch from the Core module.

Column Definitions

Column Data Type Description Constraints
idBIGINT UNSIGNEDPrimary key for the bank record.PK, Auto-Increment
branch_idBIGINT UNSIGNEDForeign key linking to the `branches` table.NOT NULL, FK
account_idBIGINT UNSIGNEDForeign key linking to the `accounts` table (Ledger Account).NOT NULL, FK
bank_nameVARCHAR(255)The official name of the bank (e.g., "Meezan Bank").Nullable
bank_titleVARCHAR(255)The account title or name.NOT NULL
account_numberVARCHAR(255)The bank account number.Nullable
swift_codeVARCHAR(255)The SWIFT/BIC code for international transfers.Nullable
telephone_no_oneVARCHAR(255)Primary contact number for the bank branch.Nullable
telephone_no_twoVARCHAR(255)Secondary contact number.Nullable
faxVARCHAR(255)Fax number for the bank branch.Nullable
telex_noVARCHAR(255)Telex number.Nullable
addressVARCHAR(255)Physical address of the bank branch.Nullable
bank_chequeVARCHAR(255)Information related to cheque processing.Nullable
bank_internet_transationVARCHAR(255)Details for internet banking transactions.Nullable
bank_credit_cardVARCHAR(255)Information about associated credit card facilities.Nullable
default_bankVARCHAR(255)Flag to mark this as a default bank account.Nullable
manager_contactVARCHAR(255)Name of the bank account manager.Nullable
manager_designationVARCHAR(255)Designation of the manager.Nullable
manager_telephoneVARCHAR(255)Contact number for the manager.Nullable
bank_statusTINYINTStatus of the bank account (e.g., 1 for Active).NOT NULL, Default: 1

Relationships

  • The branch_id column establishes a many-to-one relationship with the branches table in the Core module.
  • The account_id column links each bank record to a specific ledger account in the accounts table.