Polymorphes akte_notiz-Modell (gleiches entitaet_typ/entitaet_id-Muster wie Dokument/Historie/Mangel), CRUD-Endpunkte, NotizenPanel im Akte-Grid. Löschen nur durch Autor oder Administrator. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
23 lines
438 B
Python
23 lines
438 B
Python
import uuid
|
|
from datetime import datetime
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from app.schemas.dokument import EntitaetTyp
|
|
|
|
|
|
class AkteNotizCreate(BaseModel):
|
|
entitaet_typ: EntitaetTyp
|
|
entitaet_id: str
|
|
text: str
|
|
|
|
|
|
class AkteNotizRead(BaseModel):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
id: uuid.UUID
|
|
entitaet_typ: str
|
|
entitaet_id: str
|
|
text: str
|
|
autor_id: int
|
|
erstellt_am: datetime
|