Primakov Alexandr Alexandrovich 6ae2d0d8ec Add organization and task queue features
- Introduced new models for `Organization` and `ReviewTask` to manage organizations and review tasks.
- Implemented API endpoints for CRUD operations on organizations and tasks, including scanning organizations for repositories and PRs.
- Developed a background worker for sequential processing of review tasks with priority handling and automatic retries.
- Created frontend components for managing organizations and monitoring task queues, including real-time updates and filtering options.
- Added comprehensive documentation for organization features and quick start guides.
- Fixed UI issues and improved navigation for better user experience.
2025-10-13 00:10:04 +03:00

28 lines
751 B
Python

"""
Простой скрипт для создания таблиц в БД
"""
import asyncio
from app.database import engine, Base
from app.models import Organization, ReviewTask, Repository, PullRequest, Review, Comment
async def create_tables():
"""Создать все таблицы"""
async with engine.begin() as conn:
# Создать все таблицы
await conn.run_sync(Base.metadata.create_all)
print("✅ Таблицы созданы успешно!")
print(" - organizations")
print(" - review_tasks")
print(" - repositories")
print(" - pull_requests")
print(" - reviews")
print(" - comments")
if __name__ == "__main__":
asyncio.run(create_tables())