create tables

This commit is contained in:
poturaevpetr
2025-12-25 22:14:58 +05:00
parent 577dc277e0
commit ebfb48a2b8
3 changed files with 70 additions and 4 deletions
+9 -1
View File
@@ -1,4 +1,12 @@
from autoLoader import loader
from apiApp.database import Base, engine
# Создаём таблицы, если они не существуют
print("🔧 Создание таблиц базы данных...")
Base.metadata.create_all(bind=engine)
print("✅ Таблицы созданы")
loader.load()
# Запускаем загрузчик
print("\n🚀 Запуск AutoLoader...")
loader.load()
print("✅ AutoLoader завершил работу")