website (17 pages + 3 components): - multiplayer/wizard, middleware/wizard+test-wizard, communication - builds/wizard, staff-search, voice, sbom/wizard - foerderantrag, mail/tasks, tools/communication, sbom - compliance/evidence, uni-crawler, brandbook (already done) - CollectionsTab, IngestionTab, RiskHeatmap backend-lehrer (5 files): - letters_api (641 → 2), certificates_api (636 → 2) - alerts_agent/db/models (636 → 3) - llm_gateway/communication_service (614 → 2) - game/database already done in prior batch klausur-service (2 files): - hybrid_vocab_extractor (664 → 2) - klausur-service/frontend: api.ts (620 → 3), EHUploadWizard (591 → 2) voice-service (3 files): - bqas/rag_judge (618 → 3), runner (529 → 2) - enhanced_task_orchestrator (519 → 2) studio-v2 (6 files): - korrektur/[klausurId] (578 → 4), fairness (569 → 2) - AlertsWizard (552 → 2), OnboardingWizard (513 → 2) - korrektur/api.ts (506 → 3), geo-lernwelt (501 → 2) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
1.1 KiB
Python
57 lines
1.1 KiB
Python
"""
|
|
Database Module für Alerts Agent.
|
|
|
|
Stellt PostgreSQL-Anbindung für Alert-Persistenz bereit.
|
|
Nutzt die gleiche Base wie classroom_engine für konsistente Migrationen.
|
|
"""
|
|
from .database import Base, SessionLocal, get_db, engine
|
|
from .enums import (
|
|
AlertSourceEnum,
|
|
AlertStatusEnum,
|
|
RelevanceDecisionEnum,
|
|
FeedTypeEnum,
|
|
RuleActionEnum,
|
|
ImportanceLevelEnum,
|
|
AlertModeEnum,
|
|
MigrationModeEnum,
|
|
DigestStatusEnum,
|
|
UserRoleEnum,
|
|
)
|
|
from .models import (
|
|
AlertTopicDB,
|
|
AlertItemDB,
|
|
AlertRuleDB,
|
|
AlertProfileDB,
|
|
)
|
|
from .models_dual_mode import (
|
|
AlertTemplateDB,
|
|
AlertSourceDB,
|
|
UserAlertSubscriptionDB,
|
|
AlertDigestDB,
|
|
)
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"SessionLocal",
|
|
"get_db",
|
|
"engine",
|
|
"AlertTopicDB",
|
|
"AlertItemDB",
|
|
"AlertRuleDB",
|
|
"AlertProfileDB",
|
|
"AlertSourceEnum",
|
|
"AlertStatusEnum",
|
|
"RelevanceDecisionEnum",
|
|
"FeedTypeEnum",
|
|
"RuleActionEnum",
|
|
"ImportanceLevelEnum",
|
|
"AlertModeEnum",
|
|
"MigrationModeEnum",
|
|
"DigestStatusEnum",
|
|
"UserRoleEnum",
|
|
"AlertTemplateDB",
|
|
"AlertSourceDB",
|
|
"UserAlertSubscriptionDB",
|
|
"AlertDigestDB",
|
|
]
|