# Generated by Django 5.0.10 on 2024-12-11 14:40

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("authentik_flows", "0027_auto_20231028_1424"),
    ]

    operations = [
        migrations.CreateModel(
            name="RedirectStage",
            fields=[
                (
                    "stage_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="authentik_flows.stage",
                    ),
                ),
                ("keep_context", models.BooleanField(default=True)),
                ("mode", models.TextField(choices=[("static", "Static"), ("flow", "Flow")])),
                ("target_static", models.CharField(blank=True, default="")),
                (
                    "target_flow",
                    models.ForeignKey(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="authentik_flows.flow",
                    ),
                ),
            ],
            options={
                "verbose_name": "Redirect Stage",
                "verbose_name_plural": "Redirect Stages",
            },
            bases=("authentik_flows.stage",),
        ),
    ]
