# Generated by Django 2.1.7 on 2019-08-05 20:41

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('competition', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('ctf', '0001_initial'),
        ('choice', '0001_initial'),
        ('teams', '0001_initial'),
        ('info', '0002_usercompetitioninfo_team'),
    ]

    operations = [
        migrations.AddField(
            model_name='usercompetitioninfo',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_info', to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_choice_info', to='competition.CompetitionProfile'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='team_choice_1', to='teams.TeamProfile'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_choice_1', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='teamcompetitioninfo',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='teamcompetitioninfo',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='competition',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='team',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='ctf',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='ctf.CtfLibrary', verbose_name='提交题目'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='ctfcompetitiontable',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛编号'),
        ),
        migrations.AddField(
            model_name='ctfcompetitiontable',
            name='ctf',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='ctf.CtfLibrary', verbose_name='题目编号'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='choice',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='choice_choice', to='choice.ChoiceLibrary', verbose_name='选择题ID'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_choice', to='competition.CompetitionProfile'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_choice_submit', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='awd_submit_team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='team_id', to='teams.TeamProfile', verbose_name='目标队伍编号'),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_id', to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AlterUniqueTogether(
            name='usercompetitioninfo',
            unique_together={('user', 'team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='userchoiceinfo',
            unique_together={('user', 'team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='teamcompetitioninfo',
            unique_together={('team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='ctfcompetitiontable',
            unique_together={('ctf', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='competitionchoicesubmit',
            unique_together={('competition', 'team', 'user', 'choice')},
        ),
        migrations.AlterUniqueTogether(
            name='awdsubmit',
            unique_together={('team', 'competition')},
        ),
    ]

# Generated by Django 2.1.7 on 2019-08-05 20:41

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('competition', '0001_initial'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('ctf', '0001_initial'),
        ('choice', '0001_initial'),
        ('teams', '0001_initial'),
        ('info', '0002_usercompetitioninfo_team'),
    ]

    operations = [
        migrations.AddField(
            model_name='usercompetitioninfo',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_info', to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_choice_info', to='competition.CompetitionProfile'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='team_choice_1', to='teams.TeamProfile'),
        ),
        migrations.AddField(
            model_name='userchoiceinfo',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_choice_1', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='teamcompetitioninfo',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='teamcompetitioninfo',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='competition',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='team',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='illegality',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='ctf',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='ctf.CtfLibrary', verbose_name='提交题目'),
        ),
        migrations.AddField(
            model_name='ctfsubmit',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='队员'),
        ),
        migrations.AddField(
            model_name='ctfcompetitiontable',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='competition.CompetitionProfile', verbose_name='比赛编号'),
        ),
        migrations.AddField(
            model_name='ctfcompetitiontable',
            name='ctf',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='ctf.CtfLibrary', verbose_name='题目编号'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='choice',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='choice_choice', to='choice.ChoiceLibrary', verbose_name='选择题ID'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_choice', to='competition.CompetitionProfile'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AddField(
            model_name='competitionchoicesubmit',
            name='user',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='user_choice_submit', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='awd_submit_team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='team_id', to='teams.TeamProfile', verbose_name='目标队伍编号'),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='competition',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='competition_id', to='competition.CompetitionProfile', verbose_name='比赛'),
        ),
        migrations.AddField(
            model_name='awdsubmit',
            name='team',
            field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='teams.TeamProfile', verbose_name='队伍'),
        ),
        migrations.AlterUniqueTogether(
            name='usercompetitioninfo',
            unique_together={('user', 'team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='userchoiceinfo',
            unique_together={('user', 'team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='teamcompetitioninfo',
            unique_together={('team', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='ctfcompetitiontable',
            unique_together={('ctf', 'competition')},
        ),
        migrations.AlterUniqueTogether(
            name='competitionchoicesubmit',
            unique_together={('competition', 'team', 'user', 'choice')},
        ),
        migrations.AlterUniqueTogether(
            name='awdsubmit',
            unique_together={('team', 'competition')},
        ),
    ]

# Generated by Django 2.1.7 on 2019-08-05 20:41