feat: revue de code, doc CODE_REVIEW, forfaits 2026, traduction LLM, providers avec modèle
Made-with: Cursor
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user