Schema: hr
English table: hr.visite_mediche_link
Italian original table: hr.visite_mediche_link
Description: Association records for visite mediche link.
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 3
- Incoming foreign keys: 0
- Indexes: 4
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
vml_id | vml_id | integer | NO | | Identifier of the related vml record. |
vml_vm_id | vml_vm_id | integer | NO | | Identifier of the related vml vm record. |
vml_ido_id | vml_ido_id | integer | NO | | Identifier of the related vml ido record. |
tenant_id | tenant_id | integer | YES | | Tenant identifier for data isolation. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | JSON payload containing additional attributes. |
_deleted | _deleted | boolean | YES | false | Flag indicating whether the record is soft-deleted. |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
fk_vml_ido_id | vml_ido_id, tenant_id | hr.fitness_types | fit_id, tenant_id | RESTRICT | RESTRICT |
fk_vml_vm_id | vml_vm_id, tenant_id | hr.visite_mediche | vm_id, tenant_id | RESTRICT | RESTRICT |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
visite_mediche_link_pkey → id
- Unique:
k_vml_id_unique → vml_id, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_visite_mediche_link_tenant | NO | btree | tenant_id |
idx_visite_mediche_link_vml_id_tenant | NO | btree | tenant_id, vml_id) WHERE (_deleted = false |
idx_visite_mediche_link_vml_ido_id_tenant | NO | btree | tenant_id, vml_ido_id) WHERE (_deleted = false |
idx_visite_mediche_link_vml_vm_id_tenant | NO | btree | tenant_id, vml_vm_id) WHERE (_deleted = false |
Navigation