hr.employment_job_role_assignments
Schema: hr
English table: hr.employment_job_role_assignments
Italian original table: hr.rapporti_mansioni
Description: Assigns official CCNL job roles to employees for legal and safety compliance.
Overview
- Columns: 11
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 3
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Surrogate primary key. | |
ejra_id | rapconm_id | integer | NO | Identifier of the related ejra record. | |
ejra_er_id | rapconm_rap_id | integer | NO | Identifier of the related ejra er record. | |
ejra_job_role_code_id | rapconm_conm_id | integer | NO | Identifier of the related ejra job role code record. | |
ejra_percentage | rapconm_percetage | numeric(5,2) | NO | Ejra percentage. | |
ejra_start_date | rapconm_dal | date | NO | Date associated with the record. | |
ejra_end_date | tenant_id | date | YES | Date associated with the record. | |
ejra_period | colcustom | daterange | YES | GENERATED: daterange(ejra_start_date, ejra_end_date, '[]'::text) | Ejra period. |
tenant_id | _deleted | integer | NO | Tenant identifier for data isolation. | |
colcustom | rapconm_al | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | rapconm_periodo | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_ejra_employment_relationship | ejra_er_id, tenant_id | hr.employment_relationships | er_id, tenant_id | RESTRICT | CASCADE |
fk_ejra_job_role | ejra_job_role_code_id, tenant_id | hr.job_roles | jr_code_id, tenant_id | RESTRICT | RESTRICT |
fk_ejra_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_ejra→id - Unique:
uk_ejra_id_tenant→ejra_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_ejra_er_tenant | NO | btree | tenant_id, ejra_er_id) WHERE (_deleted = false |
idx_ejra_job_role_tenant | NO | btree | tenant_id, ejra_job_role_code_id) WHERE (_deleted = false |
idx_ejra_tenant | NO | btree | tenant_id |
Navigation
- Back to main index
- [Back to
hrindex]../)