# Generated by Django 5.2.5 on 2025-10-16 12:07 import location_field.models.plain import uuid from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Event', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('title', models.CharField(max_length=255)), ('slug', models.SlugField(blank=True, max_length=255, unique=True)), ('description', models.TextField(help_text='Event description in Markdown format')), ('start_time', models.DateTimeField()), ('end_time', models.DateTimeField()), ('address', models.CharField(blank=True, help_text='Physical address or venue name', max_length=255, null=True)), ('location', location_field.models.plain.PlainLocationField(blank=True, help_text='Select location on map', max_length=63, null=True)), ('event_type', models.CharField(choices=[('online', 'آنلاین'), ('on_site', 'حضوری'), ('hybrid', 'آنلاین/حضوری')], default='on_site', max_length=10)), ('online_link', models.URLField(blank=True, help_text='Link for online events (e.g., Zoom, Google Meet)', max_length=500, null=True)), ('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published'), ('cancelled', 'Cancelled'), ('completed', 'Completed')], default='draft', max_length=10)), ('capacity', models.PositiveIntegerField(blank=True, help_text='Maximum number of attendees (leave blank for unlimited)', null=True)), ('price', models.IntegerField(default=0, help_text='Price of the event. Leave blank for free events.')), ('registration_start_date', models.DateTimeField(blank=True, null=True)), ('registration_end_date', models.DateTimeField(blank=True, null=True)), ('featured_image', models.ImageField(blank=True, null=True, upload_to='events/featured/')), ], options={ 'ordering': ['start_time'], }, ), migrations.CreateModel( name='Registration', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('registered_at', models.DateTimeField(auto_now_add=True)), ('status', models.CharField(choices=[('pending', 'Pending'), ('confirmed', 'Confirmed'), ('cancelled', 'Cancelled'), ('attended', 'Attended')], default='pending', max_length=10)), ('ticket_id', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)), ], options={ 'ordering': ['registered_at'], }, ), ]