Schema: hr
English table: hr._forms_link
Italian original table: hr._forms_link
Description: Configuration table that links forms to data areas and defines their placement within the form grid.
Overview
- Columns: 8
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 3
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Primary key. |
frml_form_link_id | frml_id | integer | NO | | Form-to-data-area link identifier (unique per tenant). |
frml_form_id | frml_frm_id | integer | NO | | Referenced form identifier within the tenant. |
frml_form_data_area_id | frml_frm_dta_id | integer | NO | | Referenced data area identifier within the tenant. |
frml_grid_row | frml_row | numeric(2,0) | NO | | Row position in the form grid. |
frml_grid_col | frml_col | numeric(2,0) | NO | | Column position in the form grid. |
frml_display_type | frml_showtype | numeric(2,0) | NO | | Display type/mode for the linked data area (stored as numeric). |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk__forms_link_data_area | frml_form_data_area_id, tenant_id | hr._data_areas | dta_area_id, tenant_id | RESTRICT | RESTRICT |
fk__forms_link_form | frml_form_id, tenant_id | hr._forms | frm_form_id, tenant_id | RESTRICT | RESTRICT |
fk__forms_link_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk__forms_link → id
- Unique:
uk__forms_link_tenant_form_link_id → frml_form_link_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_frml_tenant | NO | btree | tenant_id |
idx_frml_tenant_form_data_area | NO | btree | tenant_id, frml_form_id, frml_form_data_area_id |
idx_frml_tenant_form_link_id | NO | btree | tenant_id, frml_form_link_id |
Navigation