struckt
This commit is contained in:
37
app.api/database/__init__.py
Normal file
37
app.api/database/__init__.py
Normal file
@@ -0,0 +1,37 @@
|
||||
"""
|
||||
Инициализация пакета database
|
||||
"""
|
||||
|
||||
from .database import Database, DatabaseConfig, db, get_db_session, init_database, test_db_connection
|
||||
from .models import User, Message, BotSettings
|
||||
from .repositories import UserRepository, MessageRepository, SettingsRepository
|
||||
from .services import ImageService, TestService, QuestionService
|
||||
|
||||
__all__ = [
|
||||
# Основные классы
|
||||
'Database',
|
||||
'DatabaseConfig',
|
||||
|
||||
# Глобальные объекты
|
||||
'db',
|
||||
|
||||
# Функции
|
||||
'get_db_session',
|
||||
'init_database',
|
||||
'test_db_connection',
|
||||
|
||||
# Модели
|
||||
'User',
|
||||
'Message',
|
||||
'BotSettings',
|
||||
|
||||
# Репозитории
|
||||
'UserRepository',
|
||||
'MessageRepository',
|
||||
'SettingsRepository',
|
||||
|
||||
# Сервисы
|
||||
'ImageService',
|
||||
'TestService',
|
||||
'QuestionService',
|
||||
]
|
||||
Reference in New Issue
Block a user