# Generated by Django 5.2.7 on 2026-03-25 11:44

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


class Migration(migrations.Migration):
    dependencies = [
        ("epdb", "0020_alter_compoundstructure_options_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="ClassifierPluginModel",
            fields=[
                (
                    "epmodel_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="epdb.epmodel",
                    ),
                ),
                ("threshold", models.FloatField(default=0.5)),
                ("eval_results", models.JSONField(blank=True, default=dict, null=True)),
                ("multigen_eval", models.BooleanField(default=False)),
                ("plugin_identifier", models.CharField(max_length=255)),
                ("plugin_config", models.JSONField(blank=True, default=dict, null=True)),
                (
                    "app_domain",
                    models.ForeignKey(
                        blank=True,
                        default=None,
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="epdb.applicabilitydomain",
                    ),
                ),
                (
                    "data_packages",
                    models.ManyToManyField(
                        related_name="%(app_label)s_%(class)s_data_packages",
                        to=settings.EPDB_PACKAGE_MODEL,
                        verbose_name="Data Packages",
                    ),
                ),
                (
                    "eval_packages",
                    models.ManyToManyField(
                        blank=True,
                        related_name="%(app_label)s_%(class)s_eval_packages",
                        to=settings.EPDB_PACKAGE_MODEL,
                        verbose_name="Evaluation Packages",
                    ),
                ),
                (
                    "rule_packages",
                    models.ManyToManyField(
                        blank=True,
                        related_name="%(app_label)s_%(class)s_rule_packages",
                        to=settings.EPDB_PACKAGE_MODEL,
                        verbose_name="Rule Packages",
                    ),
                ),
            ],
            options={
                "abstract": False,
            },
            bases=("epdb.epmodel",),
        ),
    ]
