feat(personal): PERS-004 Einsatzfunktionen (Gruppenführer/Melder/...)
Neue Stammdaten-Tabelle einsatzfunktion (Migration 0031), benutzer bekommt optionales einsatzfunktion_id-Feld - analog zu einheit_id modelliert, eine Person hat im Regelfall genau eine primäre Einsatzfunktion. Bewusst getrennt von den technischen App-Rollen (RolleTyp), die nur steuern, was jemand in MABEA tun darf, nicht welche Funktion er im Einsatz hat. CRUD-Endpunkt /einsatzfunktionen nach Kategorie-Muster, Duplikat-Prüfung vorab (Projekt-Konvention). Admin-UI: Auswahl + Inline-Neuanlage in der Benutzerverwaltung (BenutzerSection). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
@@ -26,6 +26,15 @@ class EinheitUpdate(BaseModel):
|
||||
standort_id: int | None = None
|
||||
|
||||
|
||||
class EinsatzfunktionCreate(BaseModel):
|
||||
name: str
|
||||
|
||||
|
||||
class EinsatzfunktionRead(EinsatzfunktionCreate):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
id: int
|
||||
|
||||
|
||||
class QualifikationstypCreate(BaseModel):
|
||||
name: str
|
||||
kategorie: Qualifikationskategorie
|
||||
|
||||
Reference in New Issue
Block a user