Services: Admin-Lehrer, Backend-Lehrer, Studio v2, Website, Klausur-Service, School-Service, Voice-Service, Geo-Service, BreakPilot Drive, Agent-Core Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
452 B
Python
20 lines
452 B
Python
"""
|
|
Database Configuration für Alerts Agent.
|
|
|
|
Nutzt die gleiche PostgreSQL-Instanz und Base wie Classroom Engine.
|
|
"""
|
|
# Re-export from classroom_engine for consistency
|
|
from classroom_engine.database import (
|
|
Base,
|
|
SessionLocal,
|
|
get_db,
|
|
engine,
|
|
DATABASE_URL,
|
|
)
|
|
|
|
|
|
def init_db():
|
|
"""Erstellt alle Tabellen (für Entwicklung)."""
|
|
from . import models # Import models to register them
|
|
Base.metadata.create_all(bind=engine)
|