# Generated by Django 5.0.14 on 2025-04-11 11:46

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


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_core", "0047_delete_oldauthenticatedsession"),
        ("authentik_sources_ldap", "0007_ldapsource_lookup_groups_from_user"),
    ]

    operations = [
        migrations.CreateModel(
            name="GroupLDAPSourceConnection",
            fields=[
                (
                    "groupsourceconnection_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="authentik_core.groupsourceconnection",
                    ),
                ),
            ],
            options={
                "verbose_name": "Group LDAP Source Connection",
                "verbose_name_plural": "Group LDAP Source Connections",
            },
            bases=("authentik_core.groupsourceconnection",),
        ),
        migrations.CreateModel(
            name="UserLDAPSourceConnection",
            fields=[
                (
                    "usersourceconnection_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="authentik_core.usersourceconnection",
                    ),
                ),
            ],
            options={
                "verbose_name": "User LDAP Source Connection",
                "verbose_name_plural": "User LDAP Source Connections",
            },
            bases=("authentik_core.usersourceconnection",),
        ),
    ]
