# Generated by Django 5.2.7 on 2025-10-09 13:53

import uuid
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_providers_proxy", "0015_proxyprovider_receive_header_auth"),
    ]

    operations = [
        migrations.CreateModel(
            name="ProxySession",
            fields=[
                ("expires", models.DateTimeField(default=None, null=True)),
                ("expiring", models.BooleanField(default=True)),
                ("uuid", models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ("session_key", models.TextField(db_index=True, unique=True)),
                ("user_id", models.UUIDField(blank=True, db_index=True, null=True)),
                ("session_data", models.JSONField(blank=True, default=dict)),
            ],
            options={
                "verbose_name": "Proxy Session",
                "verbose_name_plural": "Proxy Sessions",
                "indexes": [
                    models.Index(fields=["user_id"], name="authentik_p_user_id_44328e_idx")
                ],
            },
        ),
    ]
