Files
Amirhossein Khalili 88b793ed9f
Some checks failed
Backend CI/CD / test (push) Has been cancelled
Backend CI/CD / deploy (push) Has been cancelled
initial commit
2026-05-19 20:53:08 +03:30

40 lines
1.3 KiB
Python

# Generated by Django 5.2.5 on 2025-10-16 12:07
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('events', '0002_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.AddField(
model_name='registration',
name='user',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='event_registrations', to=settings.AUTH_USER_MODEL),
),
migrations.AddIndex(
model_name='event',
index=models.Index(fields=['status', 'start_time'], name='events_even_status_189ced_idx'),
),
migrations.AddIndex(
model_name='event',
index=models.Index(fields=['event_type'], name='events_even_event_t_a87b5c_idx'),
),
migrations.AddIndex(
model_name='registration',
index=models.Index(fields=['event', 'status'], name='events_regi_event_i_c98244_idx'),
),
migrations.AddIndex(
model_name='registration',
index=models.Index(fields=['user'], name='events_regi_user_id_a0262e_idx'),
),
]