# Generated by Django 6.0.4 on 2026-06-06 02:55

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('events', '0001_initial'),
        ('projects', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='registrationform',
            name='project',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='registration_forms', to='projects.project'),
        ),
        migrations.AddField(
            model_name='registrationformfield',
            name='form',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fields', to='events.registrationform'),
        ),
        migrations.AddField(
            model_name='registrationformsubmission',
            name='form',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='submissions', to='events.registrationform'),
        ),
        migrations.AddField(
            model_name='registrationformsubmission',
            name='reviewed_by',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='reviewed_form_submissions', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddIndex(
            model_name='eventblocklist',
            index=models.Index(fields=['email'], name='event_block_email_a1f893_idx'),
        ),
        migrations.AddIndex(
            model_name='eventblocklist',
            index=models.Index(fields=['event', 'email'], name='event_block_event_i_69d732_idx'),
        ),
        migrations.AddConstraint(
            model_name='eventblocklist',
            constraint=models.UniqueConstraint(fields=('email', 'event'), name='uniq_blocklist_email_event'),
        ),
        migrations.AlterUniqueTogether(
            name='eventinvitation',
            unique_together={('event', 'email')},
        ),
        migrations.AlterUniqueTogether(
            name='eventregistration',
            unique_together={('event', 'email')},
        ),
        migrations.AlterUniqueTogether(
            name='eventteam',
            unique_together={('event', 'user')},
        ),
        migrations.AddIndex(
            model_name='invitationtemplate',
            index=models.Index(fields=['category'], name='invitation__categor_368a65_idx'),
        ),
        migrations.AddIndex(
            model_name='registrationform',
            index=models.Index(fields=['source'], name='registratio_source_9c9a26_idx'),
        ),
        migrations.AddIndex(
            model_name='registrationform',
            index=models.Index(fields=['status'], name='registratio_status_d1947b_idx'),
        ),
        migrations.AddIndex(
            model_name='registrationformfield',
            index=models.Index(fields=['form', 'order'], name='registratio_form_id_1bb9a3_idx'),
        ),
        migrations.AddIndex(
            model_name='registrationformsubmission',
            index=models.Index(fields=['form', 'status'], name='registratio_form_id_32f10f_idx'),
        ),
        migrations.AddIndex(
            model_name='registrationformsubmission',
            index=models.Index(fields=['form', 'submitted_at'], name='registratio_form_id_0c003b_idx'),
        ),
    ]
