update alembic

This commit is contained in:
IluaAir
2025-07-06 00:03:55 +03:00
parent 05121b3d06
commit 231caf7c6e
6 changed files with 32 additions and 453 deletions

View File

@@ -1,11 +1,9 @@
from typing import Annotated, AsyncGenerator
from fastapi import Depends
from fastapi_users_db_sqlalchemy import SQLAlchemyUserDatabase
from sqlalchemy.ext.asyncio import AsyncSession
from src.db.database import async_session_maker
from src.models import UsersORM
async def get_db() -> AsyncGenerator[AsyncSession, None]:
@@ -16,5 +14,3 @@ async def get_db() -> AsyncGenerator[AsyncSession, None]:
DBDep = Annotated[AsyncSession, Depends(get_db)]
async def get_user_db(session: DBDep):
yield SQLAlchemyUserDatabase(session, UsersORM)