mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-11-30 00:53:02 +00:00
1d81213773
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
109 lines
4.7 KiB
Python
109 lines
4.7 KiB
Python
# Generated by Django 3.2.13 on 2023-01-10 19:22
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('participation', '0001_initial'),
|
|
('registration', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='tournament',
|
|
name='organizers',
|
|
field=models.ManyToManyField(related_name='organized_tournaments', to='registration.VolunteerRegistration', verbose_name='organizers'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='team',
|
|
index=models.Index(fields=['trigram'], name='participati_trigram_239255_idx'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='synthesis',
|
|
name='participation',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='participation.participation', verbose_name='participation'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='synthesis',
|
|
name='passage',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='syntheses', to='participation.passage', verbose_name='passage'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='solution',
|
|
name='participation',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='solutions', to='participation.participation', verbose_name='participation'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='pool',
|
|
name='juries',
|
|
field=models.ManyToManyField(related_name='jury_in', to='registration.VolunteerRegistration', verbose_name='juries'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='pool',
|
|
name='participations',
|
|
field=models.ManyToManyField(related_name='pools', to='participation.Participation', verbose_name='participations'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='pool',
|
|
name='tournament',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='pools', to='participation.tournament', verbose_name='tournament'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='passage',
|
|
name='defender',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='participation.participation', verbose_name='defender'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='passage',
|
|
name='opponent',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='participation.participation', verbose_name='opponent'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='passage',
|
|
name='pool',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='passages', to='participation.pool', verbose_name='pool'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='passage',
|
|
name='reporter',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='participation.participation', verbose_name='reporter'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='participation',
|
|
name='team',
|
|
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='participation.team', verbose_name='team'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='participation',
|
|
name='tournament',
|
|
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, to='participation.tournament', verbose_name='tournament'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='note',
|
|
name='jury',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='registration.volunteerregistration', verbose_name='jury'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='note',
|
|
name='passage',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notes', to='participation.passage', verbose_name='passage'),
|
|
),
|
|
migrations.AddIndex(
|
|
model_name='tournament',
|
|
index=models.Index(fields=['name', 'date_start', 'date_end'], name='participati_name_b43174_idx'),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='synthesis',
|
|
unique_together={('participation', 'passage', 'type')},
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='solution',
|
|
unique_together={('participation', 'problem', 'final_solution')},
|
|
),
|
|
]
|