# Generated by Django 5.2.8 on 2025-12-06 15:03

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Transition",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("is_seed_data", models.BooleanField(default=False, editable=False)),
                ("is_user_data", models.BooleanField(default=False, editable=False)),
                ("is_deleted", models.BooleanField(default=False, editable=False)),
                (
                    "workflow",
                    models.CharField(
                        help_text="Workflow name for the transitioning instance.",
                        max_length=255,
                    ),
                ),
                (
                    "identifier",
                    models.CharField(
                        help_text="Identifier for the workflow instance (for example, a primary key).",
                        max_length=255,
                    ),
                ),
                (
                    "from_state",
                    models.CharField(
                        blank=True,
                        help_text="State before running the step.",
                        max_length=255,
                    ),
                ),
                (
                    "to_state",
                    models.CharField(
                        help_text="State after completing the step.", max_length=255
                    ),
                ),
                (
                    "step_name",
                    models.CharField(
                        blank=True,
                        help_text="Human-readable name of the executed step.",
                        max_length=255,
                    ),
                ),
                ("occurred_at", models.DateTimeField(auto_now_add=True)),
            ],
            options={
                "ordering": ["-occurred_at", "-id"],
                "indexes": [
                    models.Index(
                        fields=["workflow", "identifier", "occurred_at"],
                        name="flows_trans_workflo_96673b_idx",
                    )
                ],
            },
        ),
    ]
