# Generated by Django 5.1.1 on 2026-03-22 11:51

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='RSVP',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Name of the guest', max_length=255)),
                ('first_name', models.CharField(help_text='First name of the attendee', max_length=200)),
                ('last_name', models.CharField(blank=True, help_text='Last name of the attendee', max_length=200, null=True)),
                ('email', models.EmailField(help_text='Email address of the attendee', max_length=254, unique=True)),
                ('phone', models.CharField(help_text='Phone number of the attendee', max_length=20)),
                ('ticket_number', models.CharField(max_length=20, unique=True)),
                ('message_sid', models.CharField(blank=True, max_length=255, null=True)),
                ('qr_code', models.ImageField(blank=True, null=True, upload_to='qr_codes/')),
                ('access_card', models.ImageField(blank=True, null=True, upload_to='access/')),
                ('is_sent', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'RSVP',
                'verbose_name_plural': 'RSVPs',
                'ordering': ['-created_at'],
            },
        ),
        migrations.CreateModel(
            name='Accreditation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('is_accredited', models.BooleanField(default=False)),
                ('time', models.TimeField(auto_now_add=True)),
                ('rsvp', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accreditations', to='guest.rsvp')),
            ],
            options={
                'ordering': ['-date', '-time'],
                'unique_together': {('rsvp', 'date')},
            },
        ),
    ]
