Table core.sales_teams
Details on sales team.
# Column Name Nullable Data Type Max Length Description
1sales_team_idinteger0The primary key of the table, which is also a serial field.
2sales_team_codecharacter varying12The code given to the sales team.
3sales_team_namecharacter varying50The name given to the sales team, which is also 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 sales_teams_audit_user_id_fkey office.users.user_id

Indices

Index Name Owner Access Method Definition Description
sales_teams_pkey postgres btree sales_team_id
sales_teams_sales_team_name_uix postgres btree upper(sales_team_name::text)
sales_teams_sales_team_code_uix postgres btree upper(sales_team_code::text)

Check Constraints

Constraint Name Description

Default Values

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

Triggers

Trigger Name Targets On Event Timing Condition Order Orientation Description