# Generated by Django 4.2.11 on 2024-05-02 15:55

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ('tournaments', '0032_remove_playerregistration_has_paid_and_more'),
    ]

    operations = [
        migrations.RenameField(
            model_name='tournament',
            old_name='bracket_sort_mode',
            new_name='group_stage_sort_mode',
        ),
        migrations.RemoveField(
            model_name='event',
            name='court_count',
        ),
        migrations.RemoveField(
            model_name='event',
            name='group_stage_format',
        ),
        migrations.RemoveField(
            model_name='event',
            name='loser_round_format',
        ),
        migrations.RemoveField(
            model_name='event',
            name='round_format',
        ),
        migrations.RemoveField(
            model_name='match',
            name='broadcasted',
        ),
        migrations.RemoveField(
            model_name='match',
            name='court',
        ),
        migrations.RemoveField(
            model_name='match',
            name='order',
        ),
        migrations.RemoveField(
            model_name='tournament',
            name='seed_count',
        ),
        migrations.AddField(
            model_name='customuser',
            name='bracket_match_format_preference',
            field=models.IntegerField(blank=True, choices=[(0, 'Two sets'), (1, 'Two sets super tie'), (2, 'Two sets of four games'), (3, 'Nine games'), (4, 'Super Tie-Break'), (5, 'Mega Tie-Break'), (6, 'Two Sets with decisive point'), (7, 'Two Sets with decisive point and super tie-break'), (8, 'Two sets of four games with decisive point'), (9, 'Nine games with decisive point')], default=3, null=True),
        ),
        migrations.AddField(
            model_name='customuser',
            name='call_display_entry_fee',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='customuser',
            name='call_display_format',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='customuser',
            name='call_message_body',
            field=models.CharField(blank=True, max_length=400, null=True),
        ),
        migrations.AddField(
            model_name='customuser',
            name='call_message_signature',
            field=models.CharField(blank=True, max_length=200, null=True),
        ),
        migrations.AddField(
            model_name='customuser',
            name='call_use_full_custom_message',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='customuser',
            name='group_stage_match_format_preference',
            field=models.IntegerField(blank=True, choices=[(0, 'Two sets'), (1, 'Two sets super tie'), (2, 'Two sets of four games'), (3, 'Nine games'), (4, 'Super Tie-Break'), (5, 'Mega Tie-Break'), (6, 'Two Sets with decisive point'), (7, 'Two Sets with decisive point and super tie-break'), (8, 'Two sets of four games with decisive point'), (9, 'Nine games with decisive point')], default=3, null=True),
        ),
        migrations.AddField(
            model_name='customuser',
            name='loser_bracket_match_format_preference',
            field=models.IntegerField(blank=True, choices=[(0, 'Two sets'), (1, 'Two sets super tie'), (2, 'Two sets of four games'), (3, 'Nine games'), (4, 'Super Tie-Break'), (5, 'Mega Tie-Break'), (6, 'Two Sets with decisive point'), (7, 'Two Sets with decisive point and super tie-break'), (8, 'Two sets of four games with decisive point'), (9, 'Nine games with decisive point')], default=3, null=True),
        ),
        migrations.AddField(
            model_name='groupstage',
            name='size',
            field=models.IntegerField(default=4),
        ),
        migrations.AddField(
            model_name='match',
            name='court_index',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='match',
            name='disabled',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='teamregistration',
            name='lock_weight',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='teamregistration',
            name='qualified',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='teamregistration',
            name='walk_out',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='teamregistration',
            name='wild_card_bracket',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='teamregistration',
            name='wild_card_group_stage',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='tournament',
            name='additional_estimation_duration',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='tournament',
            name='entry_fee',
            field=models.FloatField(blank=True, default=20.0, null=True),
        ),
        migrations.AlterField(
            model_name='tournament',
            name='court_count',
            field=models.IntegerField(default=1),
        ),
        migrations.CreateModel(
            name='DateInterval',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('court_index', models.IntegerField()),
                ('start_date', models.DateTimeField()),
                ('end_date', models.DateTimeField()),
                ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tournaments.event')),
            ],
        ),
        migrations.CreateModel(
            name='Court',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('index', models.IntegerField(default=0)),
                ('name', models.CharField(blank=True, max_length=50, null=True)),
                ('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tournaments.club')),
            ],
        ),
    ]
