# | Column Name | Nullable | Data Type | Max Length | Description |
---|---|---|---|---|---|
1 | sales_team_id | integer | 0 | The primary key of the table, which is also a serial field. | |
2 | sales_team_code | character varying | 12 | The code given to the sales team. | |
3 | sales_team_name | character varying | 50 | The name given to the sales team, which is also a unique field. | |
4 | audit_user_id | integer | 0 | Contains the id of the user who last inserted or updated the corresponding row. | |
5 | audit_ts | timestamp with time zone | 0 | Contains the date and timestamp of the last insert or update action. |
# | Column Name | Key Name | References |
---|---|---|---|
4 | audit_user_id | sales_teams_audit_user_id_fkey | office.users.user_id |
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) |
Constraint Name | Description |
---|
# | Column Name | Default |
---|---|---|
1 | sales_team_id | nextval('core.sales_teams_sales_team_id_seq'::regclass) |
5 | audit_ts | now() |
Trigger Name | Targets | On Event | Timing | Condition | Order | Orientation | Description |
---|