# Generated by Django 3.0.11 on 2020-12-30 12:02 import django.core.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Participation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('valid', models.BooleanField(default=None, help_text='The video got the validation of the administrators.', null=True, verbose_name='valid')), ], options={ 'verbose_name': 'participation', 'verbose_name_plural': 'participations', }, ), migrations.CreateModel( name='Pool', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('round', models.PositiveSmallIntegerField(verbose_name='round')), ], options={ 'verbose_name': 'pool', 'verbose_name_plural': 'pools', }, ), migrations.CreateModel( name='Solution', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('problem', models.PositiveSmallIntegerField(verbose_name='problem')), ('final_solution', models.BooleanField(default=False, verbose_name='solution for the final tournament')), ('file', models.FileField(blank=True, default='', unique=True, upload_to='solutions/', verbose_name='file')), ], options={ 'verbose_name': 'solution', 'verbose_name_plural': 'solutions', }, ), migrations.CreateModel( name='Synthesis', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('type', models.PositiveSmallIntegerField(choices=[(1, 'opponent'), (2, 'reporter')])), ('file', models.FileField(blank=True, default='', unique=True, upload_to='syntheses/', verbose_name='file')), ], options={ 'verbose_name': 'synthesis', 'verbose_name_plural': 'syntheses', }, ), migrations.CreateModel( name='Team', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True, verbose_name='name')), ('trigram', models.CharField(help_text='The trigram must be composed of three uppercase letters.', max_length=3, unique=True, validators=[django.core.validators.RegexValidator('[A-Z]{3}')], verbose_name='trigram')), ('access_code', models.CharField(help_text='The access code let other people to join the team.', max_length=6, verbose_name='access code')), ], options={ 'verbose_name': 'team', 'verbose_name_plural': 'teams', }, ), migrations.CreateModel( name='Tournament', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True, verbose_name='name')), ('date_start', models.DateField(default=django.utils.timezone.now, verbose_name='start')), ('date_end', models.DateField(default=django.utils.timezone.now, verbose_name='end')), ('inscription_limit', models.DateTimeField(default=django.utils.timezone.now, verbose_name='limit date for registrations')), ('solution_limit', models.DateTimeField(default=django.utils.timezone.now, verbose_name='limit date to upload solutions')), ('syntheses_first_phase_limit', models.DateTimeField(default=django.utils.timezone.now, verbose_name='limit date to upload the syntheses for the first phase')), ('syntheses_second_phase_limit', models.DateTimeField(default=django.utils.timezone.now, verbose_name='limit date to upload the syntheses for the second phase')), ('description', models.TextField(blank=True, verbose_name='description')), ('final', models.BooleanField(default=False, verbose_name='final')), ], options={ 'verbose_name': 'tournament', 'verbose_name_plural': 'tournaments', }, ), ]