# Generated by Django 5.0.6 on 2024-07-11 06:35

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


class Migration(migrations.Migration):

    dependencies = [
        ("commons", "0011_evalsession_parameters"),
    ]

    operations = [
        migrations.CreateModel(
            name="AnswerInterpreter",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=100)),
                ("prompt", models.TextField()),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "llm_model",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="commons.llmmodel",
                    ),
                ),
            ],
            options={
                "verbose_name": "AnswerInterpreter",
                "verbose_name_plural": "AnswerInterpreter",
                "db_table": "answer_interpreter",
            },
        ),
        migrations.AddField(
            model_name="evalsession",
            name="answer_interpreter",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to="commons.answerinterpreter",
            ),
        ),
    ]
