feat(personal): PERS-001/002 Person fachlich von Benutzer getrennt
CI / backend-tests (push) Successful in 2m29s
CI / frontend-build (push) Successful in 28s

Neue Tabelle person (Migration 0034, Backfill bestehender Benutzer 1:1
per Zeilennummer, keine Datenverluste). Benutzer.person_id optional -
Login kann bestehende Person verknüpfen oder legt automatisch eine neue
an (Rückwärtskompatibilität zum bisherigen Anlegen-Flow). /personen-CRUD
(admin-only), neue PersonSection.tsx im Personal-Tab, BenutzerSection
um Personen-Auswahl erweitert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
2026-09-08 22:31:46 +02:00
co-authored by Claude Sonnet 5
parent 847c303a97
commit 7dc6446a56
16 changed files with 552 additions and 7 deletions
+13
View File
@@ -20,6 +20,19 @@ qualifikationskategorie_pg = PgEnum(
)
class Person(Base):
"""PERS-001: fachliches Konzept einer Person, getrennt vom technischen Login
(Benutzer). Kann ohne Benutzerkonto existieren (z.B. Jugendgruppe, externe
Helfer ohne Systemzugang) - Benutzer.person_id verweist optional hierher."""
__tablename__ = "person"
id: Mapped[int] = mapped_column(primary_key=True)
name: Mapped[str] = mapped_column(String, nullable=False)
geburtsdatum: Mapped[date | None] = mapped_column(Date)
kontakt: Mapped[str | None] = mapped_column(String)
class Einheit(Base):
"""Roadmap-Erweiterung (Personal-Modul): Organisationseinheit (Zug/Gruppe),
self-referenzierend für Hierarchie (analog Kategorie.ueberkategorie_id).