hr._widgets
Schema: hr
English table: hr._widgets
Italian original table: hr._widget
Description: Technical catalog of UI widgets with rendering configuration and report bindings.
Overview
- Columns: 11
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 3
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Surrogate primary key. | |
wdg_widget_id | wid_id | integer | NO | Logical widget identifier (unique per tenant). | |
wdg_title | wid_title | character varying(100) | NO | Widget title displayed in the user interface. | |
wdg_html | wid_html | text | NO | HTML template or markup used to render the widget. | |
wdg_size | wid_size | integer | NO | Widget size indicator used by the layout engine. | |
wdg_function_name | wid_function | character varying(50) | NO | Function name used to load or compute widget data. | |
wdg_type | wid_tipo | character varying(10) | NO | Widget type/category code. | |
wdg_report_data | wid_data_report | text | NO | Serialized report data associated with the widget. | |
wdg_options | wid_option | text | NO | Serialized widget options and configuration. | |
wdg_report_id | wid_xrep_id | integer | NO | Associated report identifier. | |
tenant_id | tenant_id | integer | YES | Tenant identifier for row-level security and data partitioning. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_wdg_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_widgets→id - Unique:
uk_wdg_id_tenant→wdg_widget_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_wdg_tenant | NO | btree | tenant_id |
idx_wdg_tenant_report | NO | btree | tenant_id, wdg_report_id |
idx_wdg_tenant_wdg | NO | btree | tenant_id, wdg_widget_id |
Navigation
- Back to main index
- [Back to
hrindex]../)