# Generated by Django 5.1.1 on 2026-05-21 10:35

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')),
                ('full_name', models.CharField(help_text='Full name of the attendee', max_length=200)),
                ('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)),
                ('country_code', models.CharField(blank=True, help_text='Country code for the phone number', max_length=5, null=True)),
                ('guests', models.CharField(blank=True, help_text='Number of guests', max_length=2, null=True)),
                ('ticket_number', models.CharField(max_length=20, unique=True)),
                ('qr_code', models.ImageField(blank=True, null=True, upload_to='qr_codes/')),
                ('access_card', models.ImageField(blank=True, null=True, upload_to='access/')),
                ('message_sid', models.CharField(blank=True, max_length=255, null=True)),
                ('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')},
            },
        ),
    ]
