hr.job_roles
Schema: hr
English table: hr.job_roles
Italian original table: hr.mansioni
Description: Master data for official CCNL job roles, used as the primary driver for compliance, medical suitability, and training requirements.
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 7
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Internal surrogate primary key. | |
jr_code_id | man_id | integer | NO | Business identifier of the duty, unique per tenant. | |
jr_title | man_title | character varying(50) | NO | Short title or name of the specific operational duty. | |
jr_description | man_description | text | NO | Detailed description of the tasks and responsibilities. | |
tenant_id | tenant_id | integer | YES | Tenant identifier for multi-tenant isolation. | |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom metadata fields in JSON format. |
_deleted | _deleted | boolean | YES | false | Soft-delete flag (true = record deleted). |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_jr_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
| From table | Foreign key | Source columns | Target columns |
|---|---|---|---|
hr.contract_level_job_links | fk_cljl_job | job_code, tenant_id | jr_code_id, tenant_id |
hr.contract_level_job_links | fk_man_id | job_code, tenant_id | jr_code_id, tenant_id |
hr.employment_job_role_assignments | fk_ejra_job_role | ejra_job_role_code_id, tenant_id | jr_code_id, tenant_id |
hr.employment_position_assignments | fk_epa_position | epa_position_code_id, tenant_id | jr_code_id, tenant_id |
hr.job_role_profile_links | fk_jrpl_job_role | jrpl_job_role_code_id, tenant_id | jr_code_id, tenant_id |
hr.job_role_suitability_requirements | fk_jrsr_job_role | jrsr_role_code_id, tenant_id | jr_code_id, tenant_id |
hr.job_role_training_requirements | fk_jrtr_job_role | jrtr_role_code_id, tenant_id | jr_code_id, tenant_id |
Constraints
- Primary key:
pk_jr→id - Unique:
uk_jr_code_tenant→jr_code_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_jr_code_tenant | NO | btree | tenant_id, jr_code_id) WHERE (_deleted = false |
idx_jr_tenant | NO | btree | tenant_id |
Navigation
- Back to main index
- [Back to
hrindex]../)