Skip to content
Updated Oct 6, 2026 by Pablo Coufal · Owner: analysisactiveentityconfluence-migration Edit on GitHub

Entity: buildingParameter ​

Entity Type: Database table

Description: A versioned snapshot of physical parameters for a building. Each change to a tracked parameter (floor area, user count, reference temperature, etc.) creates a new record with a validFrom date rather than overwriting the previous value. This enables historical reports to use the parameter values that were valid during the reported period. The most current record is the one with the highest validFrom date that does not exceed the query date. A denormalised tenantId is stored so the table can carry a uniform Row-Level Security policy; the application keeps it consistent with the parent building (em3 architecture adaptation, SPEC desatero #2).

Data Attributes Table ​

Attribute NameDescriptionData TypeDefault ValueRequired (= Nullable)UniqueFormatValidationsIndexExample
idPrimary key of the entityUUIDGeneratedYesYesUUID v4-Primary Keya1b2c3d4-…
buildingIdThe building this parameter snapshot belongs to.UUID-YesNoUUID v4Foreign Key → building; must existname: idx_buildingParameter_buildingId_validFrom, type: btree (composite with validFrom DESC)b2c3d4e5-…
tenantIdTenant that owns this record. Denormalised from building so the table can carry a uniform Row-Level Security policy (defense-in-depth, SPEC desatero #2). Must equal the parent building's tenantId; enforced by the application on insert.UUID-YesNoUUID v4Foreign Key → tenant; must exist; must equal parent building.tenantIdname: idx_buildingParameter_tenantId, type: btreee5f6a7b8-…
validFromThe date from which this parameter snapshot is valid. Records are applied to any report period that falls on or after this date, up to the next record's validFrom.Date-YesNoYYYY-MM-DDMust not be in the future; must be unique per buildingId (no two records for the same building on the same date)name: idx_buildingParameter_buildingId_validFrom, type: btree (composite with buildingId)2024-01-01
userCountNumber of active users of the building at this point in time. Migrated from legacy building_users_quantity.quantity.IntegernullNoNo-Min 0-450
areaEnergyReferenceTotal energy-reference floor area of the building (m²). Used for normalised consumption calculations. Migrated from legacy building_heated_area.area.DecimalnullNoNodecimal(10,2)Min 0-3200.00
areaUsableTotal usable floor area of the building (m²). Migrated from legacy building_usable_area.area.DecimalnullNoNodecimal(10,2)Min 0-3800.00
volumeEnclosedEnclosed (built) volume of the building (m³) — obestavěný prostor. Migrated from legacy building_built_up_area.area, which EM2 labels Obestavěný prostor in m³ despite the table name.DecimalnullNoNodecimal(10,2)Min 0-12500.00
temperatureReferencePrevailing reference internal temperature used for degree-day normalisation (°C). Migrated from legacy building_templerature.temperature (note: typo in source table name).DecimalnullNoNodecimal(5,2)Typical range 10–30 °C-20.00
lightPointsNumber of light points. Applicable to buildings of type publicLighting only. Migrated from legacy building_public_light_points.points.IntegernullNoNo-Min 0; only valid when building.type = publicLighting-320
lightPointsPvNumber of light points equipped with photovoltaic panels. Applicable to publicLighting only. Migrated from legacy building_public_light_points_fve.points.IntegernullNoNo-Min 0; must be ≤ lightPoints; only valid when building.type = publicLighting-40
legacyIdLegacy-system identifier; migration provenance.StringnullNoNo---7743
createdAtTimestamp of when the record was created.Timestampnow()YesNoYYYY-MM-DDTHH:mm:ss.SSS+00--2024-03-01T08:00:00.000+00
updatedAtTimestamp of the last update to the record.Timestampnow()YesNoYYYY-MM-DDTHH:mm:ss.SSS+00--2024-06-15T14:22:00.000+00
createdByIdentifier of the actor who created the record (user ID or system).StringsystemYesNo-Non-empty-user:a1b2c3d4 / system
updatedByIdentifier of the actor who last updated the record (user ID or system).StringsystemYesNo-Non-empty-user:a1b2c3d4 / system

Note: source page has no deletedAt column for this entity — versioning is achieved via validFrom, not soft-delete. Documented as given; not added.

Audited fields ​

Recorded on created (in full) only — this entity has no update or delete endpoint (see Description): buildingId, validFrom, areaEnergyReference, areaUsable, volumeEnclosed, userCount, temperatureReference, lightPoints, lightPointsPv, legacyId.

Excluded: none.

Not registered for entityName resolution, and has no independent human-readable attribute to register — identified by its buildingId/validFrom pair.