# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-25 16:36
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('robots', '0001_initial'),
        ('games', '0001_initial'),
        ('leagues', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Match',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('datetime', models.DateTimeField(verbose_name='date and time')),
                ('finished', models.BooleanField(default=False, verbose_name='finished')),
                ('robot1_score', models.FloatField(default=0)),
                ('robot2_score', models.FloatField(default=0)),
                ('log', models.TextField(null=True)),
                ('_match_scheduler_id', models.CharField(max_length=36, null=True, verbose_name='match scheduler id')),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='matches', to='games.Game')),
                ('league', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='matches', to='leagues.League')),
                ('robot1', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='matches1', to='robots.Robot')),
                ('robot2', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='matches2', to='robots.Robot')),
            ],
        ),
    ]
