# Generated by Django 6.1.1 on 2026-11-02 17:36

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('academy', '0002_academyprospectclaim_clubyouthteam_and_more'),
        ('clubs', '0012_clubdefaultlineup_tactical_plan_and_more'),
        ('matches', '0031_governed_friendlies'),
        ('players', '0008_freeze_retired_player_cards'),
    ]

    operations = [
        migrations.RemoveConstraint(
            model_name='matchlineup',
            name='lineup_valid_formation',
        ),
        migrations.RemoveConstraint(
            model_name='matchlineupentry',
            name='lineup_entry_role_slot',
        ),
        migrations.AlterField(
            model_name='matchlineup',
            name='formation',
            field=models.CharField(choices=[('4-3-3', '4-3-3'), ('4-4-2', '4-4-2'), ('4-2-3-1', '4-2-3-1'), ('4-1-4-1', '4-1-4-1'), ('3-5-2', '3-5-2'), ('3-4-3', '3-4-3'), ('5-3-2', '5-3-2'), ('4-4-2-D', '4-4-2 diamond'), ('4-4-2-WD', '4-4-2 wide diamond'), ('4-3-3-DM', '4-3-3 holding'), ('4-3-3-2DM', '4-3-3 double pivot'), ('4-3-3-AM', '4-3-3 attacking'), ('4-2-2-2', '4-2-2-2'), ('4-3-1-2', '4-3-1-2'), ('4-1-2-1-2', '4-1-2-1-2'), ('4-3-2-1', '4-3-2-1'), ('4-4-1-1', '4-4-1-1'), ('4-5-1', '4-5-1'), ('4-1-3-2', '4-1-3-2'), ('4-2-4', '4-2-4'), ('4-1-2-3', '4-1-2-3'), ('3-4-1-2', '3-4-1-2'), ('3-4-2-1', '3-4-2-1'), ('3-2-4-1', '3-2-4-1'), ('3-1-4-2', '3-1-4-2'), ('3-3-3-1', '3-3-3-1'), ('3-5-1-1', '3-5-1-1'), ('5-4-1', '5-4-1'), ('5-2-1-2', '5-2-1-2'), ('5-2-2-1', '5-2-2-1'), ('5-1-3-1', '5-1-3-1'), ('2-3-5', '2-3-5'), ('3-2-5', '3-2-5'), ('CUSTOM', 'Custom eleven')], max_length=16),
        ),
        migrations.AddConstraint(
            model_name='matchlineup',
            constraint=models.CheckConstraint(condition=models.Q(('formation__in', ['4-3-3', '4-4-2', '4-2-3-1', '4-1-4-1', '3-5-2', '3-4-3', '5-3-2', '4-4-2-D', '4-4-2-WD', '4-3-3-DM', '4-3-3-2DM', '4-3-3-AM', '4-2-2-2', '4-3-1-2', '4-1-2-1-2', '4-3-2-1', '4-4-1-1', '4-5-1', '4-1-3-2', '4-2-4', '4-1-2-3', '3-4-1-2', '3-4-2-1', '3-2-4-1', '3-1-4-2', '3-3-3-1', '3-5-1-1', '5-4-1', '5-2-1-2', '5-2-2-1', '5-1-3-1', '2-3-5', '3-2-5', 'CUSTOM'])), name='lineup_valid_formation'),
        ),
        migrations.AddConstraint(
            model_name='matchlineupentry',
            constraint=models.CheckConstraint(condition=models.Q(models.Q(('role', 'STARTER'), ('slot__in', ('CAM', 'CB', 'CM', 'DM', 'GK', 'LAM', 'LB', 'LCB', 'LCM', 'LDM', 'LM', 'LST', 'LW', 'LWB', 'RAM', 'RB', 'RCB', 'RCM', 'RDM', 'RM', 'RST', 'RW', 'RWB', 'ST'))), models.Q(('is_captain', False), ('role', 'SUBSTITUTE'), ('slot', '')), _connector='OR'), name='lineup_entry_role_slot'),
        ),
    ]
