leistungsbilanz-ts/src/db/schema
Grovy311 cd89c4a499 Add buildings above floors and a building structure page
Projects with several buildings could not be structured: floors and rooms
hung directly off the project. Floors can now belong to a building
(migration 0009: table buildings, nullable floors.building_id). Rooms and
distribution boards keep their floor; their building follows from it.
Existing floors stay without a building.

Buildings use the location-structure command store with
project-building.insert/.update/.delete, inverses and persistent Undo/Redo;
deleting a building with assigned floors is rejected. Floor commands carry
buildingId since command version 2. Version 1 floor commands from existing
history predate buildings and are upgraded with buildingId = null before
they are executed and persisted, so forward and inverse keep one version.

Project snapshot schema 7 stores buildings and floor.buildingId; versions
1-6 are upgraded without buildings. Restore and portable transfer include
buildings, and the transfer remaps building ids.

Buildings, floors and rooms move from the project overview to their own
page /projects/:id/struktur with three columns (Gebäude -> Etagen -> Räume)
that filter each other, and a sidebar entry. Floor selects in the board and
room dialogs are grouped by building. Unchanged dialogs close without a
command. Details in docs/building-structure.md; see issue #6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 12:52:34 +02:00
..
buildings.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
circuit-device-rows.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
circuit-list-equipment-identifiers.ts Add component persistence foundation 2026-07-30 19:15:00 +02:00
circuit-lists.ts Rewrite frontend, added rooms, voltage selection per project, startet with todos 2026-05-01 17:07:56 +02:00
circuit-protection-devices.ts Add component persistence foundation 2026-07-30 19:15:00 +02:00
circuit-sections.ts Add component persistence foundation 2026-07-30 19:15:00 +02:00
circuits.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
distribution-board-component-protection-devices.ts Add component persistence foundation 2026-07-30 19:15:00 +02:00
distribution-board-components.ts Add component persistence foundation 2026-07-30 19:15:00 +02:00
distribution-boards.ts Add print view, board info card and document logo upload 2026-09-26 10:38:59 +02:00
document-branding-assets.ts Add print view, board info card and document logo upload 2026-09-26 10:38:59 +02:00
document-branding-settings.ts Add print cover fields and office profile 2026-09-26 10:39:18 +02:00
external-csv-configurations.ts Persist Revit CSV configuration 2026-08-02 16:33:18 +02:00
external-import-batches.ts Add atomic Revit initial import 2026-08-02 17:33:32 +02:00
external-model-objects.ts Add external model persistence foundation 2026-08-02 17:18:24 +02:00
external-model-sources.ts Add external model persistence foundation 2026-08-02 17:18:24 +02:00
external-room-mappings.ts Add external model persistence foundation 2026-08-02 17:18:24 +02:00
floors.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
global-devices.ts All first todos completed 2026-05-01 17:58:14 +02:00
project-change-sets.ts Add project revision foundation 2026-07-23 21:17:48 +02:00
project-devices.ts Remove project device mirror fields 2026-07-23 20:55:26 +02:00
project-history-stack-entries.ts Add persistent history stacks 2026-07-23 21:48:24 +02:00
project-revisions.ts Add project revision foundation 2026-07-23 21:17:48 +02:00
project-snapshots.ts Add automatic project snapshots 2026-07-25 23:27:51 +02:00
projects.ts Add print cover fields and office profile 2026-09-26 10:39:18 +02:00
rooms.ts Rewrite frontend, added rooms, voltage selection per project, startet with todos 2026-05-01 17:07:56 +02:00