feat: revue de code, doc CODE_REVIEW, forfaits 2026, traduction LLM, providers avec modèle

Made-with: Cursor
This commit is contained in:
Sepehr Ramezani
2026-03-07 11:42:58 +01:00
parent 3d37ce4582
commit 473b3e26c7
181 changed files with 30617 additions and 7170 deletions

View File

@@ -1,17 +1,46 @@
"""
Database module for the Document Translation API
Provides PostgreSQL support with async SQLAlchemy
Provides PostgreSQL/SQLite support with async SQLAlchemy 2.0
"""
from database.connection import get_db, engine, SessionLocal, init_db
from database.models import User, Subscription, Translation, ApiKey
from database.connection import (
get_db,
get_db_session,
get_async_session,
engine,
AsyncSessionLocal,
init_db,
get_engine,
)
from database.models import (
Base,
User,
Translation,
ApiKey,
UsageLog,
PaymentHistory,
PlanType,
SubscriptionStatus,
Glossary,
GlossaryTerm,
)
__all__ = [
"get_db",
"engine",
"SessionLocal",
"get_db_session",
"get_async_session",
"engine",
"AsyncSessionLocal",
"init_db",
"get_engine",
"Base",
"User",
"Subscription",
"Translation",
"ApiKey"
"ApiKey",
"UsageLog",
"PaymentHistory",
"PlanType",
"SubscriptionStatus",
"Glossary",
"GlossaryTerm",
]