Schema: hr
English table: hr.x_termination_reasons
Italian original table: hr.x_causale_fine_rapporto
Description: Lookup table for employment termination reasons (Service table).
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. |
xtr_id | xfirap_id | integer | NO | | Technical identifier for the termination reason. |
xtr_description | xfirap_description | character varying(100) | NO | | Textual description of the reason (e.g., Resignation, Firing, End of Contract). |
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.employment_relationships | fk_employment_relationships_end_reason | er_end_reason_id, tenant_id | xtr_id, tenant_id |
Constraints
- Primary key:
pk_x_termination_reasons → id
- Unique:
uk_xtr_id_tenant → xtr_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xtr_id_tenant | NO | btree | tenant_id, xtr_id |
idx_xtr_tenant | NO | btree | tenant_id |
Navigation