Document bootstrap seed data
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user