# Generated by Django 2.0.2 on 2018-06-01 07:38

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Countries',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, unique=True)),
                ('group', models.CharField(choices=[('Група A', 'Група A'), ('Група B', 'Група B'), ('Група C', 'Група C'), ('Група D', 'Група D'), ('Група E', 'Група E'), ('Група F', 'Група F'), ('Група G', 'Група G'), ('Група H', 'Група H')], max_length=10)),
            ],
        ),
        migrations.CreateModel(
            name='Matches',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('match_date', models.DateField()),
                ('match_start_time', models.TimeField()),
                ('score_c1', models.IntegerField()),
                ('score_c2', models.IntegerField()),
                ('country_guest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='country_guest', to='matches.Countries')),
                ('country_home', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='country_home', to='matches.Countries')),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='matches',
            unique_together={('country_home', 'country_guest')},
        ),
    ]
