From 8b31dfc7ca9e395fabe7e963567ce2e46781267a Mon Sep 17 00:00:00 2001 From: Fabian Wolter Date: Sun, 14 Jun 2026 07:38:31 +0000 Subject: [PATCH] Document bootstrap seed data --- install-notes/000-installation-index.md | 2 + ...19-bootstrap-admin-und-erste-seed-daten.md | 65 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 install-notes/019-bootstrap-admin-und-erste-seed-daten.md diff --git a/install-notes/000-installation-index.md b/install-notes/000-installation-index.md index 2f858a3..5d92f34 100644 --- a/install-notes/000-installation-index.md +++ b/install-notes/000-installation-index.md @@ -21,3 +21,5 @@ - [017 - Serverstruktur: Status-API ausgelagert](017-serverstruktur-status-api-ausgelagert.md) - [018 - Repository-Schicht und System-Overview-Endpunkt](018-repository-schicht-system-overview.md) + +- [019 - Bootstrap-Admin und erste Seed-Daten](019-bootstrap-admin-und-erste-seed-daten.md) diff --git a/install-notes/019-bootstrap-admin-und-erste-seed-daten.md b/install-notes/019-bootstrap-admin-und-erste-seed-daten.md new file mode 100644 index 0000000..09841dc --- /dev/null +++ b/install-notes/019-bootstrap-admin-und-erste-seed-daten.md @@ -0,0 +1,65 @@ +# 019 - Bootstrap-Admin und erste Seed-Daten + +## Ziel + +Für RUVNOX Tactical wurden erste Seed-Daten direkt in PostgreSQL angelegt. + +## Angelegte Daten + +- Admin-Benutzer: admin +- Anzeigename: RUVNOX Admin +- Rolle: admin +- Passwort-Hash: NULL +- Einsatzraum: HQ +- Einsatzraumname: RUVNOX Lagezentrum +- Klassifizierung: internal +- Mitgliedschaft: admin als lead im Raum HQ +- Audit-Event: bootstrap.seed_completed + +## Ergebnis + +Der öffentliche Overview-Endpunkt liefert jetzt echte Werte: + +users.total = 1 +users.active = 1 +operationRooms.total = 1 +operationRooms.active = 1 +auditEvents = 1 + +## Wichtiger Hinweis + +Der Admin-Datensatz ist aktuell noch kein echter Login-Account. + +password_hash bleibt bewusst NULL, weil Auth/Login noch nicht implementiert ist. + +## Verifikation + +Benutzer: + +select username, display_name, role, is_active from app_users order by username; + +Einsatzräume: + +select code, name, classification, is_active from operation_rooms order by code; + +Audit: + +select event_type, entity_type, created_at from audit_events order by created_at desc limit 5; + +API: + +curl -fsS https://tactical.ruvnox.de/api/v1/system/overview + +## Abschlussstand + +- Admin-Datensatz angelegt +- HQ-Einsatzraum angelegt +- Admin als lead eingetragen +- Audit-Event angelegt +- Overview-Endpunkt geprüft +- Keine Server-Code-Änderung +- Keine Deploy-Code-Änderung + +## Nächster Abschnitt + +Empfohlen: Seed-Daten als kleines versioniertes Deploy-Script speichern oder direkt Auth-Grundlage beginnen.