Skip to main content

hr.medical_exam_types

Schema: hr
English table: hr.medical_exam_types
Italian original table: hr.visite_mediche
Description: Medical exam types — configuration of health surveillance requirements.

Overview

  • Columns: 8
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 2
  • Indexes: 2

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOSurrogate primary key.
met_idvm_idintegerNOLogical identifier of the medical exam type (unique per tenant).
met_titlevm_titlecharacter varying(50)NODisplay name of the medical exam type.
met_descriptionvm_descriptiontextNODescription of the medical exam type.
met_days_noticevm_days_noticeintegerNONumber of days of notice required before the exam.
tenant_idtenant_idintegerYESTenant identifier for data isolation.
colcustomcolcustomjsonbYES'{}'::jsonbJSON payload containing additional attributes.
_deleted_deletedbooleanYESfalseFlag indicating whether the record is soft-deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_tenant_idtenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

From tableForeign keySource columnsTarget columns
hr.medical_exam_type_parametersfk_metp_medical_exam_type_idmetp_medical_exam_type_id, tenant_idmet_id, tenant_id
hr.medical_exam_type_fitness_typesfk_metft_medical_exam_typemetft_medical_exam_type_id, tenant_idmet_id, tenant_id

Constraints

  • Primary key: medical_exam_types_pkeyid
  • Unique: k_vm_id_uniquemet_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_medical_exam_types_tenantNObtreetenant_id
idx_medical_exam_types_met_id_tenantNObtreetenant_id, met_id) WHERE (_deleted = false