# Column Name Nullable Data Type Max Length Description
1item_group_idinteger0The primary key of this table, which is also a serial field.
2item_group_codecharacter varying12
3item_group_namecharacter varying50
4exclude_from_purchaseboolean0
5exclude_from_salesboolean0
6sales_tax_idinteger0
7sales_account_idbigint0
8sales_discount_account_idbigint0
9sales_return_account_idbigint0
10purchase_account_idbigint0
11purchase_discount_account_idbigint0
12inventory_account_idbigint0
13cost_of_goods_sold_account_idbigint0
14parent_item_group_idinteger0
15audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
16audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
6 sales_tax_id item_groups_sales_tax_id_fkey core.sales_taxes.sales_tax_id
7 sales_account_id item_groups_sales_account_id_fkey core.accounts.account_id
8 sales_discount_account_id item_groups_sales_discount_account_id_fkey core.accounts.account_id
9 sales_return_account_id item_groups_sales_return_account_id_fkey core.accounts.account_id
10 purchase_account_id item_groups_purchase_account_id_fkey core.accounts.account_id
11 purchase_discount_account_id item_groups_purchase_discount_account_id_fkey core.accounts.account_id
12 inventory_account_id item_groups_inventory_account_id_fkey core.accounts.account_id
13 cost_of_goods_sold_account_id item_groups_cost_of_goods_sold_account_id_fkey core.accounts.account_id
14 parent_item_group_id item_groups_parent_item_group_id_fkey core.item_groups.item_group_id
15 audit_user_id item_groups_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
item_groups_pkey postgres btree item_group_id
item_groups_item_group_name_uix postgres btree upper(item_group_name::text)
item_groups_item_group_code_uix postgres btree upper(item_group_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 item_group_id nextval('core.item_groups_item_group_id_seq'::regclass)
4 exclude_from_purchase false
5 exclude_from_sales false
16 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description