dak.c2s/backend/app/models/__init__.py
CCS Admin e7befe78b6 feat: SQLAlchemy models for users, cases, reports, audit
11 models across 4 files matching the MariaDB schema:
- user.py: User, RefreshToken, InvitationLink, AllowedDomain
- case.py: Case, CaseICDCode
- report.py: WeeklyReport, YearlySummary
- audit.py: ImportLog, AuditLog, Notification

All CHECK constraints, indexes (incl. prefix index), foreign keys,
and server defaults match the SQL DDL specification exactly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 07:28:33 +00:00

24 lines
593 B
Python

"""SQLAlchemy models for the DAK Zweitmeinungs-Portal."""
from app.models.user import AllowedDomain, InvitationLink, RefreshToken, User
from app.models.case import Case, CaseICDCode
from app.models.report import WeeklyReport, YearlySummary
from app.models.audit import AuditLog, ImportLog, Notification
__all__ = [
# User & Auth
"User",
"RefreshToken",
"InvitationLink",
"AllowedDomain",
# Cases
"Case",
"CaseICDCode",
# Reports
"WeeklyReport",
"YearlySummary",
# Logging & Notifications
"ImportLog",
"AuditLog",
"Notification",
]