mirror of
https://github.com/grey-cat-1908/formaptix-server.git
synced 2024-11-11 18:57:27 +03:00
15 lines
348 B
Python
15 lines
348 B
Python
from models import settings
|
|
from sqlalchemy.ext.asyncio import create_async_engine, async_sessionmaker
|
|
from sqlalchemy.orm import DeclarativeBase
|
|
|
|
engine = create_async_engine(settings.database)
|
|
sessions = async_sessionmaker(engine)
|
|
|
|
|
|
class Base(DeclarativeBase):
|
|
pass
|
|
|
|
|
|
from .user import User
|
|
from .form import Form
|
|
from .answer import Answer
|