Skip to content
Updated Sep 26, 2026 by Barča Dvořáková · Owner: analysisdraftentitygauge-managementpxe Edit on GitHub

Entity: gaugeMonthlyValue ​

Entity Type: Database table

Description: Twelve monthly figures a supply point needs for the joint energy purchase, kept as rows rather than as twelve columns on the gauge so the set can grow and be read per month. Two kinds are stored: the agreed monthly consumption of a gas medium- or large-scale supply point, whose yearly sum is what the gauge detail shows as the read-only annual consumption (Confluence feature id26, attribute 16), and the monthly reserved capacities of an electricity VN / VVN supply point (attribute 19). Both are entered by the user in a modal opened from the gauge detail — Měsíční hodnoty spotřeby and Měsíční rezervované kapacity — never derived automatically. Whether the gas consumption figures should instead be computed from readings is still open (gauge form specification, chapter 8, question 18).

Data Attributes Table ​

Attribute NameDescriptionData TypeDefault ValueRequired (= Nullable)UniqueFormatValidationsIndexExample
idPrimary key of the entity.UUIDGenerated in code (app layer)YesYesUUID v7-Primary Key01960000-0000-7000-8000-000000000401
tenantIdTenant that owns this record. Denormalised from gauge.UUID-YesNoUUID v7Foreign Key → tenant; must equal the parent gauge.tenantId.name: idx_gaugeMonthlyValue_tenantId, type: btree01960000-0000-7000-8000-000000000099
gaugeIdThe supply point these figures belong to.UUID-YesNoUUID v7Foreign Key → gauge; must exist.name: idx_gaugeMonthlyValue_gaugeId_kind_year_month, type: btree (composite)01960000-0000-7000-8000-000000000005
kindWhat the twelve figures describe.String-YesNoValues: consumption, reservedCapacityconsumption only for gas with supplyType in (mediumScale, largeScaleGas); reservedCapacity only for electricity with supplyType in (largeScaleVN, largeScaleVVN).-consumption
yearCalendar year the figures apply to.Integer-YesNoYYYYBetween 2000 and the current year + 5.-2026
monthCalendar month, 1–12.Integer-YesNo-Between 1 and 12; unique per gaugeId + kind + year.name: idx_gaugeMonthlyValue_gaugeId_kind_year_month, type: btree (composite)1
valueThe figure itself. Consumption in MWh, reserved capacity in MW.DecimalnullNoNoDecimal(18,3)Zero or greater. Null means the month was left empty — the yearly total is then not computed and the gauge detail shows "Nevyplněno".-186.400
unitUnit of value, stored explicitly so exports and the PXE report do not have to infer it from kind.String-YesNoenum — UnitMWh for consumption, MW for reservedCapacity.-MWh
createdAtTimestamp of entity creation. Immutable.Timestamp with time zoneSet in codeYesNoISO 8601--2026-09-23T10:00:00Z
updatedAtTimestamp of last update. Set on insert equal to createdAt.Timestamp with time zoneSet in codeYesNoISO 8601--2026-09-23T10:00:00Z
createdByIdentifier of the actor who created this record.String-YesNotype:actor--user:01960000-0000-7000-8000-000000000099
updatedByIdentifier of the actor who last updated this record.String-YesNotype:actor--user:01960000-0000-7000-8000-000000000099

Audited fields ​

Recorded on created (in full) and updated (changed only) — no deleted, since this table has no deletedAt column; a row is removed by application logic clearing/overwriting the month's value rather than by soft-delete: gaugeId, kind, year, month, value, unit.

Excluded: none.

Every entry carries subjectEntityType = gauge / subjectEntityId = gaugeId — this table has no identity of its own beyond the gauge it belongs to.

Not registered for entityName resolution, and has no independent human-readable attribute to register — identified by its gaugeId/kind/year/month scope.

Notes ​

  • The annual figure shown on the gauge detail for gas medium / large-scale supply points is the sum of the twelve consumption rows of the current year; it is not stored on the gauge and cannot be typed in directly.
  • All twelve reservedCapacity rows filled means the gauge detail shows "Vyplněno" next to the Editace button; otherwise "Nevyplněno".