# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-13 09:28
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_started', models.DateTimeField(auto_now_add=True)),
                ('result', models.CharField(choices=[(b'win1', b'Player 1 wins'), (b'win2', b'Player 2 wins'), (b'draw', b'Draw'), (b'in_progress', b'In progress')], max_length=15)),
            ],
        ),
        migrations.CreateModel(
            name='Move',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sequence_no', models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9)])),
                ('x', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(2)])),
                ('y', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(2)])),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Game')),
            ],
        ),
        migrations.CreateModel(
            name='Player',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=255)),
                ('type', models.CharField(choices=[(b'ai_random', b'AI Random'), (b'ai_min_max', b'AI MinMax'), (b'anonymous', b'Anonymous'), (b'registered', b'Registered')], max_length=15)),
            ],
        ),
        migrations.AddField(
            model_name='move',
            name='player',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='player1',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player1', to='web.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='player2',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player2', to='web.Player'),
        ),
    ]

d85a0a4572f6eda1b12f455dea463652870c5452
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Game', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('date_started', models.DateTimeField(
        auto_now_add=True)), ('result', models.CharField(choices=[(b'win1',
        b'Player 1 wins'), (b'win2', b'Player 2 wins'), (b'draw', b'Draw'),
        (b'in_progress', b'In progress')], max_length=15))]), migrations.
        CreateModel(name='Move', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('sequence_no', models.IntegerField(validators=[django.core
        .validators.MinValueValidator(1), django.core.validators.
        MaxValueValidator(9)])), ('x', models.IntegerField(validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(2)])), ('y', models.IntegerField(validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(2)])), ('game', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='web.Game'))]), migrations.
        CreateModel(name='Player', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('username', models.CharField(max_length=255)), ('type',
        models.CharField(choices=[(b'ai_random', b'AI Random'), (
        b'ai_min_max', b'AI MinMax'), (b'anonymous', b'Anonymous'), (
        b'registered', b'Registered')], max_length=15))]), migrations.
        AddField(model_name='move', name='player', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='web.Player')),
        migrations.AddField(model_name='game', name='player1', field=models
        .ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='player1', to='web.Player')), migrations.AddField(
        model_name='game', name='player2', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='player2',
        to='web.Player'))]

from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    initial = True
    dependencies = []
    operations = [migrations.CreateModel(name='Game', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('date_started', models.DateTimeField(
        auto_now_add=True)), ('result', models.CharField(choices=[(b'win1',
        b'Player 1 wins'), (b'win2', b'Player 2 wins'), (b'draw', b'Draw'),
        (b'in_progress', b'In progress')], max_length=15))]), migrations.
        CreateModel(name='Move', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('sequence_no', models.IntegerField(validators=[django.core
        .validators.MinValueValidator(1), django.core.validators.
        MaxValueValidator(9)])), ('x', models.IntegerField(validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(2)])), ('y', models.IntegerField(validators=[
        django.core.validators.MinValueValidator(0), django.core.validators
        .MaxValueValidator(2)])), ('game', models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, to='web.Game'))]), migrations.
        CreateModel(name='Player', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('username', models.CharField(max_length=255)), ('type',
        models.CharField(choices=[(b'ai_random', b'AI Random'), (
        b'ai_min_max', b'AI MinMax'), (b'anonymous', b'Anonymous'), (
        b'registered', b'Registered')], max_length=15))]), migrations.
        AddField(model_name='move', name='player', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='web.Player')),
        migrations.AddField(model_name='game', name='player1', field=models
        .ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='player1', to='web.Player')), migrations.AddField(
        model_name='game', name='player2', field=models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, related_name='player2',
        to='web.Player'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-13 09:28
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date_started', models.DateTimeField(auto_now_add=True)),
                ('result', models.CharField(choices=[(b'win1', b'Player 1 wins'), (b'win2', b'Player 2 wins'), (b'draw', b'Draw'), (b'in_progress', b'In progress')], max_length=15)),
            ],
        ),
        migrations.CreateModel(
            name='Move',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sequence_no', models.IntegerField(validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(9)])),
                ('x', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(2)])),
                ('y', models.IntegerField(validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(2)])),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Game')),
            ],
        ),
        migrations.CreateModel(
            name='Player',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=255)),
                ('type', models.CharField(choices=[(b'ai_random', b'AI Random'), (b'ai_min_max', b'AI MinMax'), (b'anonymous', b'Anonymous'), (b'registered', b'Registered')], max_length=15)),
            ],
        ),
        migrations.AddField(
            model_name='move',
            name='player',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='player1',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player1', to='web.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='player2',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='player2', to='web.Player'),
        ),
    ]
