Skip to main content

hr.person_fitness_certifications

Schema: hr
English table: hr.person_fitness_certifications
Italian original table: hr.ana_idoneita
Description: Records medical/health fitness certifications for persons (employees), tracking last visits, expiry dates, and visit outcomes.

Overview

  • Columns: 11
  • Primary key: id
  • Outgoing foreign keys: 1
  • Incoming foreign keys: 0
  • Indexes: 9

Columns

English columnItalian original columnTypeNullDefault / GeneratedDescription
ididintegerNOPrimary key identifier for the fitness certification record.
person_fitness_certification_idaido_idintegerNOInternal reference ID for the fitness certification.
person_fitness_person_idaido_ana_idintegerNOForeign key referencing the person (employee) who holds the fitness certification.
person_fitness_fitness_type_idaido_ido_idintegerNOForeign key referencing the type of fitness (fitness eligibility) being certified.
person_fitness_last_visit_onaido_last_visitdateNODate of the most recent fitness assessment/visit.
person_fitness_expires_onaido_date_expireddateNODate when the fitness certification expires.
person_fitness_visit_outcome_idaido_xesvm_idintegerNOForeign key referencing the outcome/result of the fitness visit (e.g., approved, rejected).
person_fitness_notesaido_notetextNOFree-text notes regarding the fitness certification.
tenant_idtenant_idintegerYESMulti‑tenant isolation column. References cloud._tenant.
colcustomcolcustomjsonbYES'{}'::jsonbJSONB field for custom, tenant‑specific extensions.
_deleted_deletedbooleanYESfalseSoft‑delete flag. When true, the record is considered logically deleted.

Relationships

Outgoing foreign keys

ConstraintLocal columnsReferencesReferenced columnsOn updateOn delete
fk_person_fitness_certifications_tenanttenant_idcloud.tenantsten_internal_idRESTRICTCASCADE

Referenced by

No incoming foreign keys found.

Constraints

  • Primary key: pk_person_fitness_certificationsid
  • Unique: uk_person_fitness_certifications_cert_tenantperson_fitness_certification_id, tenant_id

Indexes

NameUniqueMethodColumns / expression
idx_pfc_tenantNObtreetenant_id
idx_pfc_tenant_certificationNObtreetenant_id, person_fitness_certification_id) WHERE (_deleted = false
idx_pfc_tenant_expiryNObtreetenant_id, person_fitness_expires_on) WHERE (_deleted = false
idx_pfc_tenant_fitness_typeNObtreetenant_id, person_fitness_fitness_type_id) WHERE (_deleted = false
idx_pfc_tenant_lastvisit_person_expiryNObtreetenant_id, person_fitness_person_id, person_fitness_last_visit_on, person_fitness_expires_on) WHERE (_deleted = false
idx_pfc_tenant_lastvisit_person_fitnessNObtreetenant_id, person_fitness_last_visit_on, person_fitness_person_id, person_fitness_fitness_type_id) WHERE (_deleted = false
idx_pfc_tenant_outcomeNObtreetenant_id, person_fitness_visit_outcome_id) WHERE (_deleted = false
idx_pfc_tenant_personNObtreetenant_id, person_fitness_person_id) WHERE (_deleted = false
idx_pfc_tenant_person_fitness_typeNObtreetenant_id, person_fitness_person_id, person_fitness_fitness_type_id) WHERE (_deleted = false