Schema: hr
English table: hr.x_hiring_sources
Italian original table: hr.x_tipi_provenienza
Description: Lookup table for hiring/recruitment sources (e.g., Agency, Direct, Referral).
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. |
xhs_id | xpr_id | integer | NO | | Identifier of the related xhs record. |
xhs_description | xpr_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_xhs_tenant | 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_origin_type | er_origin_type_id, tenant_id | xhs_id, tenant_id |
Constraints
- Primary key:
pk_x_hiring_sources → id
- Unique:
c_uk_xhs_id_tenant → xhs_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_xhs_id_tenant_lookup | NO | btree | tenant_id, xhs_id |
idx_xhs_tenant_base | NO | btree | tenant_id |
Navigation