Schema: hr
English table: hr.evacuation_points
Italian original table: hr.punti_evacuazione
Description: Evacuation points used for safety and emergency management (multi-tenant).
Overview
- Columns: 7
- Primary key: id
- Outgoing foreign keys: 1
- Incoming foreign keys: 0
- Indexes: 2
Columns
| English column | Italian original column | Type | Null | Default / Generated | Description |
|---|
id | id | integer | NO | | Surrogate primary key. |
ep_code | pev_id | integer | NO | | Business identifier for the evacuation point (unique per tenant). |
ep_description | pev_description | character varying(50) | NO | | Evacuation point description. |
ep_is_disabled | pev_disabled | boolean | NO | | Whether the evacuation point is disabled. |
tenant_id | tenant_id | integer | YES | | Tenant identifier. |
colcustom | colcustom | jsonb | YES | '{}'::jsonb | Custom fields stored as JSON. |
_deleted | _deleted | boolean | YES | false | Soft delete flag (technical). |
Relationships
Outgoing foreign keys
| Constraint | Local columns | References | Referenced columns | On update | On delete |
|---|
fk_ep_tenant_id | tenant_id | cloud.tenants | ten_internal_id | RESTRICT | CASCADE |
Referenced by
No incoming foreign keys found.
Constraints
- Primary key:
pk_evacuation_points → id
- Unique:
uk_ep_code_tenant → ep_code, tenant_id
Indexes
| Name | Unique | Method | Columns / expression |
|---|
idx_ep_tenant | NO | btree | tenant_id |
idx_ep_tenant_code | NO | btree | tenant_id, ep_code) WHERE (_deleted = false |
Navigation