# Generated by Django 5.2.7 on 2025-10-10 06:58

import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import uuid
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("epdb", "0007_alter_enviformer_options_enviformer_app_domain_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="EnzymeLink",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
                    ),
                ),
                (
                    "created",
                    model_utils.fields.AutoCreatedField(
                        default=django.utils.timezone.now, editable=False, verbose_name="created"
                    ),
                ),
                (
                    "modified",
                    model_utils.fields.AutoLastModifiedField(
                        default=django.utils.timezone.now, editable=False, verbose_name="modified"
                    ),
                ),
                (
                    "uuid",
                    models.UUIDField(
                        default=uuid.uuid4, unique=True, verbose_name="UUID of this object"
                    ),
                ),
                ("name", models.TextField(default="no name", verbose_name="Name")),
                (
                    "description",
                    models.TextField(default="no description", verbose_name="Descriptions"),
                ),
                ("url", models.TextField(null=True, unique=True, verbose_name="URL")),
                ("kv", models.JSONField(blank=True, default=dict, null=True)),
                ("ec_number", models.TextField(verbose_name="EC Number")),
                ("classification_level", models.IntegerField(verbose_name="Classification Level")),
                ("linking_method", models.TextField(verbose_name="Linking Method")),
                ("edge_evidence", models.ManyToManyField(to="epdb.edge")),
                ("reaction_evidence", models.ManyToManyField(to="epdb.reaction")),
                (
                    "rule",
                    models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="epdb.rule"),
                ),
            ],
            options={
                "abstract": False,
            },
        ),
    ]
