# Generated by Django 5.2 on 2025-05-29 12:18

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


class Migration(migrations.Migration):

    dependencies = [
        ("django_ai_agent", "0003_create_history"),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="TranscriptionModel",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "provider",
                    models.CharField(
                        choices=[("OPENAI", "Openai"), ("GROQ", "Groq")],
                        default="GROQ",
                        max_length=100,
                    ),
                ),
                (
                    "model_name",
                    models.CharField(
                        blank=True,
                        choices=[
                            ("gpt-4o-transcribe", "gpt-4o-transcribe"),
                            ("gpt-4o-mini-transcribe", "gpt-4o-mini-transcribe"),
                            ("whisper-1", "whisper-1"),
                            ("whisper-large-v3-turbo", "whisper-large-v3-turbo"),
                        ],
                        max_length=255,
                        null=True,
                    ),
                ),
            ],
        ),
        migrations.AddField(
            model_name="agent",
            name="transcription_model",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="django_ai_agent.transcriptionmodel",
            ),
        ),
        migrations.AddField(
            model_name="historicalagent",
            name="transcription_model",
            field=models.ForeignKey(
                blank=True,
                db_constraint=False,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name="+",
                to="django_ai_agent.transcriptionmodel",
            ),
        ),
    ]
