app.occupancy_counters
TablaSeguridad a nivel de fila activa
A live occupancy counter (Section 4.9) for a space or entrance on a project: the current count against the permitted occupant load, with alerts at 80, 90 and 100 percent.
Clave primaria: id
| Columna | Tipo | Admite nulos | Descripción |
|---|---|---|---|
| id | uuid | No | Primary key, UUID v7. |
| org_id | uuid | No | Owning org, derived from app.projects on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id |
| project_id | uuid | No | Project the counter runs on.Hace referencia a app.projects.id |
| space_id | uuid | Sí | Space counted; required unless the load comes from a permit.Hace referencia a app.spaces.id |
| name | text | No | Counter name, for example Main Floor. |
| load_basis | app.occupancy_load_basis | No | Space Capacity, Occupant Load Factor or Permit. |
| metric_domain | text | Sí | Bible metric domain of the load factor (capacity).Hace referencia a xpms.dim_metric.domain |
| metric_item | text | Sí | Bible occupant load factor used, for example Assembly - standing space.Hace referencia a xpms.dim_metric.item |
| permitted_load | integer | No | Permitted occupant load. |
| current_count | integer | No | People inside now, kept by the door counts. |
| alert_level_percent | smallint | No | Highest alert level (80, 90 or 100) the count currently meets; 0 below 80. |
| closed_at | timestamp with time zone | Sí | When counting stopped. |
| created_at | timestamp with time zone | No | When the row was inserted. Set by the database. |
| created_by | uuid | Sí | Person who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| updated_at | timestamp with time zone | No | When the row last changed. Set by the database. |
| updated_by | uuid | Sí | Person who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id |
| deleted_at | timestamp with time zone | Sí | Soft delete time. A row with deleted_at set is ignored by every access helper. |