feat: персональные AI модели, оптимизация задач, фильтрация словаря
- Добавлена поддержка персональных AI моделей для каждого пользователя - Оптимизация создания заданий: батч-запрос к AI вместо N запросов - Фильтрация слов по языку изучения (source_lang) в словаре - Удалены неиспользуемые колонки examples и category из vocabulary - Миграции для ai_model_id и удаления колонок 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
26
migrations/versions/20251208_user_ai_model.py
Normal file
26
migrations/versions/20251208_user_ai_model.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""Add ai_model_id to users
|
||||
|
||||
Revision ID: 20251208_user_ai_model
|
||||
Revises: 20251208_rm_examples_category
|
||||
Create Date: 2024-12-08
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision: str = '20251208_user_ai_model'
|
||||
down_revision: Union[str, None] = '20251208_rm_examples_category'
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column('users', sa.Column('ai_model_id', sa.Integer(), nullable=True))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column('users', 'ai_model_id')
|
||||
Reference in New Issue
Block a user