mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
apply sqlalchemy 2.0 declarative base and mapped columns
This commit is contained in:
@@ -11,7 +11,7 @@ from sqlalchemy import (
|
||||
select,
|
||||
)
|
||||
from sqlalchemy.ext.asyncio import AsyncSession
|
||||
from sqlalchemy.orm import relationship
|
||||
from sqlalchemy.orm import relationship, mapped_column, Mapped
|
||||
|
||||
from app.models.base import Base
|
||||
|
||||
|
||||
Reference in New Issue
Block a user