Files
pyproject2/database/__init__.py
2025-12-25 16:32:17 +03:00

17 lines
385 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Модуль для работы с базой данных"""
from database.connection import get_session, async_session_maker, engine
from database.models import User, Book, Author, Genre, Favorite, UserPreferences
__all__ = [
'get_session',
'async_session_maker',
'engine',
'User',
'Book',
'Author',
'Genre',
'Favorite',
'UserPreferences'
]