Table core.compound_items
This table stores information on combination on compund items and other associated information to it.
# Column Name Nullable Data Type Max Length Description
1compound_item_idinteger0The primary key of this table, which is also a serial field.
2compound_item_codecharacter varying12Code given to the compound item.
3compound_item_namecharacter varying150The name given to compound item, which is a unique field
4audit_user_idinteger0Contains the id of the user who last inserted or updated the corresponding row.
5audit_tstimestamp with time zone0Contains the date and timestamp of the last insert or update action.

Foreign Keys

# Column Name Key Name References
4 audit_user_id compound_items_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
compound_items_pkey postgres btree compound_item_id
compound_items_compound_item_name_uix postgres btree lower(compound_item_name::text)
compound_items_compound_item_code_uix postgres btree lower(compound_item_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 compound_item_id nextval('core.compound_items_compound_item_id_seq'::regclass)
5 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description