from django.db import migrations, models


STEP_CHOICES = [
    ("PRECHECK", "Preflight checks"),
    ("FINALIZE_SOURCE", "Finalize source competitions"),
    ("COMPLETE_SOURCE", "Complete source season"),
    ("MATERIALIZE_PLAYERS", "Materialize player progression and aging"),
    ("APPLY_MOVEMENT", "Apply promotion/relegation"),
    ("GENERATE_LEAGUES", "Generate target league schedules"),
    ("CREATE_COMPETITIONS", "Create target federation competitions"),
    ("QUALIFY_COMPETITIONS", "Apply continental qualification"),
    ("DRAW_COMPETITIONS", "Draw target competitions"),
    ("BUILD_CALENDAR", "Build season calendar windows"),
    ("MARK_UPCOMING", "Mark target season upcoming"),
]


class Migration(migrations.Migration):
    dependencies = [("seasons", "0003_season_competition_orchestration")]

    operations = [
        migrations.AlterField(
            model_name="seasonorchestrationrun",
            name="current_step",
            field=models.CharField(blank=True, choices=STEP_CHOICES, default="", max_length=32),
        ),
        migrations.AlterField(
            model_name="seasonorchestrationstep",
            name="step_key",
            field=models.CharField(choices=STEP_CHOICES, max_length=32),
        ),
    ]
