# Generated by Django 5.0.3 on 2025-01-29 03:08

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("pxy_bots", "0004_remove_telegrambot_assistant_and_more"),
        (
            "pxy_langchain",
            "0002_remove_aiprovider_base_url_aiassistant_created_at_and_more",
        ),
    ]

    operations = [
        migrations.RemoveField(
            model_name="telegrambot",
            name="assistant_id",
        ),
        migrations.RemoveField(
            model_name="telegrambot",
            name="assistant_type",
        ),
        migrations.AddField(
            model_name="telegrambot",
            name="assistant",
            field=models.ForeignKey(
                default=1,
                help_text="The LangChain AI assistant associated with this Telegram bot.",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="telegram_bots",
                to="pxy_langchain.aiassistant",
            ),
            preserve_default=False,
        ),
    ]
