hr.position_equipment_requirements
Schema: hr
English table: hr.position_equipment_requirements
Italian original table:
Description: Links job positions to the required equipment or assets (e.g., car, laptop, safety gear) that should be provided.
Overview
- Columns: 10
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 6
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | `` | integer | NO | | Surrogate primary key. |
per_id | `` | integer | NO | | Identifier of the related per record. |
per_position_id | `` | integer | NO | | Reference to the job position/role. |
per_equipment_type_id | `` | integer | NO | | Reference to the type of equipment required. |
per_valid_from | `` | date | NO | | Boundary value used for range filtering (start/end). |
per_valid_to | `` | date | NO | | Boundary value used for range filtering (start/end). |
tenant_id | `` | integer | YES | | Tenant identifier for data isolation. |
colcustom | `` | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | `` | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
per_validity_period | `` | daterange | YES | GENERATED: daterange(per_valid_from, per_valid_to, '[]'::text) | Temporal validity of this requirement for the specific position. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_per_equipment_type | per_equipment_type_id, tenant_id | hr.equipment_types | eqt_id, tenant_id | RESTRICT | RESTRICT |
fk_per_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
fk_rudo_role_id | per_position_id, tenant_id | hr.positions | pos_code_id, tenant_id | RESTRICT | RESTRICT |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_position_equipment_requirements → id
- Unique:
uk_per_id_tenant → per_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_per_equipment_type_tenant | NO | btree | tenant_id, per_equipment_type_id) WHERE (_deleted = false |
idx_per_id_tenant | NO | btree | tenant_id, per_id) WHERE (_deleted = false |
idx_per_position_period_gist | NO | gist | tenant_id, per_position_id, per_validity_period) WHERE (_deleted = false |
idx_per_position_tenant | NO | btree | tenant_id, per_position_id) WHERE (_deleted = false |
idx_per_tenant | NO | btree | tenant_id |
idx_per_validity_period_gist | NO | gist | tenant_id, per_validity_period) WHERE (_deleted = false |
Navigation