123
This commit is contained in:
0
backend/auth_service/app/models/__init__.py
Normal file
0
backend/auth_service/app/models/__init__.py
Normal file
Binary file not shown.
Binary file not shown.
15
backend/auth_service/app/models/database.py
Normal file
15
backend/auth_service/app/models/database.py
Normal file
@@ -0,0 +1,15 @@
|
||||
"""
|
||||
Database models and connection management for Authentication Service.
|
||||
Re-exports shared module components for backward compatibility.
|
||||
"""
|
||||
|
||||
# Re-export everything from the shared module
|
||||
from shared.models import Base, get_db, engine, AsyncSessionLocal, User
|
||||
|
||||
__all__ = ["Base", "get_db", "engine", "AsyncSessionLocal", "User"]
|
||||
|
||||
|
||||
async def create_tables():
|
||||
"""Create all tables in the database."""
|
||||
async with engine.begin() as conn:
|
||||
await conn.run_sync(Base.metadata.create_all)
|
||||
Reference in New Issue
Block a user