Schema: hr
English table: hr.x_counter_usage_types
Italian original table: hr.x_tipo_utilizzo_contatore
Description: Defines how HR counters are affected by justifications (e.g., subtract from balance, add to used).
Overview
- Columns: 4
- 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. |
xcut_id | xtipucont_id | integer | NO | | Identifier of the related xcut record. |
xcut_description | xtipucont_description | character varying(30) | NO | | Description text. |
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_xcut_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|
hr.document_model_justifications | fk_document_model_justifications_usage_type | dmj_counter_usage_type_id, tenant_id | xcut_id, tenant_id |
Constraints
- Primary key:
pk_x_counter_usage_types → id
- Unique:
c_uk_xcut_id_tenant → xcut_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xcut_id_tenant_lookup | NO | btree | tenant_id, xcut_id |
idx_xcut_tenant_base | NO | btree | tenant_id |
Navigation