Schema: hr
English table: hr.x_attachment_groups
Italian original table: hr.x_gruppi_allegati
Description: Grouping categories for attachments (e.g., Personal Docs, Medical, Contracts). Service table.
Overview
- Columns: 5
- 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. |
xag_id | grall_id | integer | NO | | Identifier of the related xag record. |
xag_description | grall_descrizione | character varying(50) | NO | | Description text. |
xag_is_visible_on_web | grall_mostra_web | boolean | NO | | Flag to determine if this group of attachments is visible in the web portal. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.attachment_types | fk_tipall_grall_id | atty_group_id, tenant_id | xag_id, tenant_id |
Constraints
- Primary key:
pk_x_attachment_groups → id
- Unique:
uk_xag_id_tenant → xag_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xag_id_tenant | NO | btree | tenant_id, xag_id |
idx_xag_tenant | NO | btree | tenant_id |
Navigation