Skip to main content

hr.medical_exam_type_parameters

Schema: hr
English table: hr.medical_exam_type_parameters
Italian original table: hr.visite_mediche_parametri
Description: Parameters and applicability rules for medical examination types, including thresholds, period settings, and contract/level/qualification scope.

Overview

  • Columns: 14
  • Primary key: id
  • Outgoing foreign keys: 5
  • Incoming foreign keys: 0
  • Indexes: 8

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key.
metp_codevmp_idintegerNOSource parameter record identifier (unique per tenant).
metp_medical_exam_type_idvmp_vm_idintegerNOMedical examination type identifier (references medical exam types).
metp_parameter_type_idvmp_xparvm_idintegerNOParameter type identifier for the medical examination configuration.
metp_min_valuevmp_param_minintegerNOMinimum threshold/value for the parameter (source integer).
metp_max_valuevmp_param_maxintegerNOMaximum threshold/value for the parameter (source integer).
metp_period_type_idvmp_xpvm_idintegerNOPeriod type identifier used to interpret the parameter period value.
metp_period_valuevmp_periodintegerNOPeriod value (source integer) associated with the period type.
metp_job_qualification_idvmp_conq_idintegerNOJob qualification identifier (contract qualification scope) to which this parameter applies.
metp_job_level_idvmp_conl_idintegerNOJob level identifier (contract level scope) to which this parameter applies.
metp_contract_idvmp_con_idintegerNOContract identifier (scope) to which this parameter applies.
tenant_idtenant_idintegerYESTenant identifier.
colcustomcolcustomjsonbYES'{}'::jsonbCustom fields payload (JSON).
_deleted_deletedbooleanYESfalseSoft delete flag.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_medical_exam_type_parameters_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE
fk_metp_contract_idmetp_contract_id, tenant_idhr.collective_agreementsca_code, tenant_idRESTRICTRESTRICT
fk_metp_job_level_idmetp_job_level_id, tenant_idhr.agreement_levelsal_code, tenant_idRESTRICTRESTRICT
fk_metp_job_qualification_idmetp_job_qualification_id, tenant_idhr.agreement_qualificationsaq_code, tenant_idRESTRICTRESTRICT
fk_metp_medical_exam_type_idmetp_medical_exam_type_id, tenant_idhr.visite_medichevm_id, tenant_idRESTRICTRESTRICT

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_medical_exam_type_parametersid
  • Unique: uk_metp_code_tenantmetp_code, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_metp_tenantNObtreetenant_id
idx_metp_tenant_codeNObtreetenant_id, metp_code) WHERE (_deleted = false
idx_metp_tenant_contractNObtreetenant_id, metp_contract_id) WHERE (_deleted = false
idx_metp_tenant_job_levelNObtreetenant_id, metp_job_level_id) WHERE (_deleted = false
idx_metp_tenant_job_qualificationNObtreetenant_id, metp_job_qualification_id) WHERE (_deleted = false
idx_metp_tenant_medical_exam_typeNObtreetenant_id, metp_medical_exam_type_id) WHERE (_deleted = false
idx_metp_tenant_parameter_typeNObtreetenant_id, metp_parameter_type_id) WHERE (_deleted = false
idx_metp_tenant_period_typeNObtreetenant_id, metp_period_type_id) WHERE (_deleted = false