# Column Name Nullable Data Type Max Length Description
1opportunity_stage_idinteger0The primary key of this table, which is also a serial field.
2opportunity_stage_codecharacter varying12
3opportunity_stage_namecharacter varying50
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 opportunity_stages_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
opportunity_stages_pkey postgres btree opportunity_stage_id
opportunity_stages_opportunity_stage_name_uix postgres btree upper(opportunity_stage_name::text)
opportunity_stages_opportunity_stage_code_uix postgres btree upper(opportunity_stage_code::text)

Check Constraints

Constraint Name Description

Default Values

# Column Name Default
1 opportunity_stage_id nextval('crm.opportunity_stages_opportunity_stage_id_seq'::regclass)
5 audit_ts now()

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description