Table core.accounts
This table stores information on General Ledger (G.L) Account.
# Column Name Nullable Data Type Max Length Description
1account_idbigint0The primary key of this table, which is also a bigserial field.
2account_master_idsmallint0The foreign key to table core.account_masters.
3account_numbercharacter varying12The unique numeric value assigned to the account name which is similar to account id.
4external_codecharacter varying12
5currency_codecharacter varying12Foreign key to the table core.currencies.
6account_namecharacter varying100The name of account master, which is also a unique field.
7descriptioncharacter varying200Description about the account.
8confidentialboolean0Limits the access to the particular account among various uesers.
9is_transaction_nodeboolean0
10sys_typeboolean0
11parent_account_idbigint0Foreign key to the table core.accounts.
12audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
13audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
2 account_master_id accounts_account_master_id_fkey core.account_masters.account_master_id
5 currency_code accounts_currency_code_fkey core.currencies.currency_code
11 parent_account_id accounts_parent_account_id_fkey core.accounts.account_id
12 audit_user_id accounts_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
accounts_pkey postgres btree account_id
accounts_name_uix postgres btree upper(account_name::text)
accounts_account_number_uix postgres btree upper(account_number::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 account_id nextval('core.accounts_account_id_seq'::regclass)
4 external_code ''::character varying
8 confidential false
9 is_transaction_node true
10 sys_type false
13 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description