Schema: hr
English table: hr.activity_groups
Italian original table: hr.gruppi_attivita
Description: Catalog of activity groups used to organize activity types.
Overview
- Columns: 6
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 1
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
actg_activity_group_id | gratt_id | integer | NO | | Tenant-scoped activity group identifier. |
actg_description | gratt_descrizione | character varying(50) | NO | | Activity group description. |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Soft delete flag. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_activity_groups_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.activity_types | fk_actt_tenant_activity_group | actt_activity_group_id, tenant_id | actg_activity_group_id, tenant_id |
Constraints
- Primary key:
pk_activity_groups → id
- Unique:
uk_actg_tenant_activity_group_id → actg_activity_group_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_actg_tenant | NO | btree | tenant_id |
idx_actg_tenant_activity_group_id | NO | btree | tenant_id, actg_activity_group_id) WHERE (_deleted = false |
Navigation