# Generated by Django 4.2.3 on 2023-10-14 16:38

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import djangoldp.fields


class Migration(migrations.Migration):

    dependencies = [
        ('djangoldp_community', '0013_auto_20231014_1439'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('auth', '0012_alter_user_first_name_max_length'),
        ('djangoldp_circle', '0035_alter_circle_options_alter_circlemember_options'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='circle',
            options={'default_permissions': {'view', 'add', 'change', 'delete', 'control'}, 'ordering': ['pk']},
        ),
        migrations.AlterModelOptions(
            name='circlemember',
            options={'default_permissions': {'view', 'add', 'change', 'delete', 'control'}, 'ordering': ['pk']},
        ),
        migrations.AddField(
            model_name='circle',
            name='admins',
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='admin_circle', to='auth.group'),
        ),
        migrations.AddField(
            model_name='circle',
            name='community',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='circles', to='djangoldp_community.community'),
        ),
        migrations.AddField(
            model_name='circle',
            name='members',
            field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='circle', to='auth.group'),
        ),
        migrations.AddField(
            model_name='circle',
            name='public',
            field=models.BooleanField(default=False),
        ),
        migrations.AlterField(
            model_name='circle',
            name='urlid',
            field=djangoldp.fields.LDPUrlField(blank=True, db_index=True, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='circlemember',
            name='circle',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='oldmembers', to='djangoldp_circle.circle'),
        ),
        migrations.AlterField(
            model_name='circlemember',
            name='urlid',
            field=djangoldp.fields.LDPUrlField(blank=True, db_index=True, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='circlemember',
            name='user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='oldcircles', to=settings.AUTH_USER_MODEL),
        ),
        migrations.DeleteModel(
            name='CircleAccessRequest',
        ),
    ]
