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 column | Italian original column | Type | Null | Default / Generated | Description |
|---|---|---|---|---|---|
id | id | integer | NO | Primary key identifier for the fitness certification record. | |
person_fitness_certification_id | aido_id | integer | NO | Internal reference ID for the fitness certification. | |
person_fitness_person_id | aido_ana_id | integer | NO | Foreign key referencing the person (employee) who holds the fitness certification. | |
person_fitness_fitness_type_id | aido_ido_id | integer | NO | Foreign key referencing the type of fitness (fitness eligibility) being certified. | |
person_fitness_last_visit_on | aido_last_visit | date | NO | Date of the most recent fitness assessment/visit. | |
person_fitness_expires_on | aido_date_expired | date | NO | Date when the fitness certification expires. | |
person_fitness_visit_outcome_id | aido_xesvm_id | integer | NO | Foreign key referencing the outcome/result of the fitness visit (e.g., approved, rejected). | |
person_fitness_notes | aido_note | text | NO | Free-text notes regarding the fitness certification. | |
tenant_id | tenant_id | integer | YES | Multi‑tenant isolation column. References cloud._tenant. | |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSONB field for custom, tenant‑specific extensions. |
_deleted | _deleted | boolean | YES | false | Soft‑delete flag. When true, the record is considered logically deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|---|---|---|---|---|
fk_person_fitness_certifications_tenant | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_person_fitness_certifications→id - Unique:
uk_person_fitness_certifications_cert_tenant→person_fitness_certification_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|---|---|---|
idx_pfc_tenant | NO | btree | tenant_id |
idx_pfc_tenant_certification | NO | btree | tenant_id, person_fitness_certification_id) WHERE (_deleted = false |
idx_pfc_tenant_expiry | NO | btree | tenant_id, person_fitness_expires_on) WHERE (_deleted = false |
idx_pfc_tenant_fitness_type | NO | btree | tenant_id, person_fitness_fitness_type_id) WHERE (_deleted = false |
idx_pfc_tenant_lastvisit_person_expiry | NO | btree | tenant_id, person_fitness_person_id, person_fitness_last_visit_on, person_fitness_expires_on) WHERE (_deleted = false |
idx_pfc_tenant_lastvisit_person_fitness | NO | btree | tenant_id, person_fitness_last_visit_on, person_fitness_person_id, person_fitness_fitness_type_id) WHERE (_deleted = false |
idx_pfc_tenant_outcome | NO | btree | tenant_id, person_fitness_visit_outcome_id) WHERE (_deleted = false |
idx_pfc_tenant_person | NO | btree | tenant_id, person_fitness_person_id) WHERE (_deleted = false |
idx_pfc_tenant_person_fitness_type | NO | btree | tenant_id, person_fitness_person_id, person_fitness_fitness_type_id) WHERE (_deleted = false |
Navigation
- Back to main index
- [Back to
hrindex]../)