# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-02 19:31
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Card',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('path', models.FilePathField(verbose_name='/Users/jacobo/dev/dixit/server/src/../../cards')),
                ('name', models.CharField(max_length=256, null=True)),
            ],
            options={
                'verbose_name': 'card',
                'verbose_name_plural': 'cards',
            },
        ),
        migrations.CreateModel(
            name='CardDescription',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.CharField(max_length=256)),
                ('confidence', models.IntegerField(default=50)),
                ('card', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='description', to='game.Card')),
            ],
            options={
                'verbose_name': 'card description',
                'verbose_name_plural': 'card descriptions',
            },
        ),
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('status', models.CharField(choices=[('new', 'NEW'), ('ongoing', 'ONGOING'), ('finished', 'FINISHED'), ('abandoned', 'ABANDONED')], default='new', max_length=16)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'game',
                'verbose_name_plural': 'games',
                'ordering': ('-created_on',),
            },
        ),
        migrations.CreateModel(
            name='Play',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('story', models.CharField(max_length=256, null=True)),
                ('card_provided', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='plays', to='game.Card')),
                ('card_voted', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='chosen', to='game.Card')),
            ],
            options={
                'verbose_name': 'play',
                'verbose_name_plural': 'play',
            },
        ),
        migrations.CreateModel(
            name='Player',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.IntegerField(default=0)),
                ('owner', models.BooleanField(default=False)),
                ('name', models.CharField(max_length=64)),
                ('token', models.CharField(max_length=64)),
                ('score', models.IntegerField(default=0)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
                ('cards', models.ManyToManyField(related_name='played_by', to='game.Card')),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='players', to='game.Game')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='players', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'player',
                'verbose_name_plural': 'player',
                'ordering': ('number',),
            },
        ),
        migrations.CreateModel(
            name='Round',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.IntegerField(default=0)),
                ('status', models.CharField(choices=[('new', 'NEW'), ('providing', 'PROVIDING'), ('voting', 'VOTING'), ('complete', 'COMPLETE')], default='new', max_length=16)),
                ('n_players', models.IntegerField(default=1)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
                ('card', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='system_round_play', to='game.Card')),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='rounds', to='game.Game')),
                ('turn', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='game.Player')),
            ],
            options={
                'verbose_name': 'round',
                'verbose_name_plural': 'round',
                'ordering': ('number',),
            },
        ),
        migrations.AddField(
            model_name='play',
            name='game_round',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='plays', to='game.Round'),
        ),
        migrations.AddField(
            model_name='play',
            name='player',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='plays', to='game.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='current_round',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='current_round', to='game.Round'),
        ),
        migrations.AlterUniqueTogether(
            name='round',
            unique_together=set([('game', 'number')]),
        ),
        migrations.AlterUniqueTogether(
            name='player',
            unique_together=set([('game', 'name'), ('game', 'number'), ('game', 'user')]),
        ),
        migrations.AlterUniqueTogether(
            name='play',
            unique_together=set([('game_round', 'player')]),
        ),
        migrations.AlterOrderWithRespectTo(
            name='play',
            order_with_respect_to='player',
        ),
    ]

8613d8b153c00961bd3e8637c5d471eb21820b7b
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Card', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('path', models.FilePathField(verbose_name=
        '/Users/jacobo/dev/dixit/server/src/../../cards')), ('name', models
        .CharField(max_length=256, null=True))], options={'verbose_name':
        'card', 'verbose_name_plural': 'cards'}), migrations.CreateModel(
        name='CardDescription', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('description', models.CharField(max_length=256)), (
        'confidence', models.IntegerField(default=50)), ('card', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='description', to='game.Card'))], options={
        'verbose_name': 'card description', 'verbose_name_plural':
        'card descriptions'}), migrations.CreateModel(name='Game', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=64)), ('status', models.CharField(choices=[('new', 'NEW'
        ), ('ongoing', 'ONGOING'), ('finished', 'FINISHED'), ('abandoned',
        'ABANDONED')], default='new', max_length=16)), ('created_on',
        models.DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True))], options={'verbose_name': 'game',
        'verbose_name_plural': 'games', 'ordering': ('-created_on',)}),
        migrations.CreateModel(name='Play', fields=[('id', models.AutoField
        (auto_created=True, primary_key=True, serialize=False, verbose_name
        ='ID')), ('story', models.CharField(max_length=256, null=True)), (
        'card_provided', models.ForeignKey(on_delete=django.db.models.
        deletion.PROTECT, related_name='plays', to='game.Card')), (
        'card_voted', models.ForeignKey(null=True, on_delete=django.db.
        models.deletion.PROTECT, related_name='chosen', to='game.Card'))],
        options={'verbose_name': 'play', 'verbose_name_plural': 'play'}),
        migrations.CreateModel(name='Player', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('number', models.IntegerField(default=0)), (
        'owner', models.BooleanField(default=False)), ('name', models.
        CharField(max_length=64)), ('token', models.CharField(max_length=64
        )), ('score', models.IntegerField(default=0)), ('created_on',
        models.DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True)), ('cards', models.ManyToManyField(
        related_name='played_by', to='game.Card')), ('game', models.
        ForeignKey(on_delete=django.db.models.deletion.PROTECT,
        related_name='players', to='game.Game')), ('user', models.
        ForeignKey(on_delete=django.db.models.deletion.PROTECT,
        related_name='players', to=settings.AUTH_USER_MODEL))], options={
        'verbose_name': 'player', 'verbose_name_plural': 'player',
        'ordering': ('number',)}), migrations.CreateModel(name='Round',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('number', models.
        IntegerField(default=0)), ('status', models.CharField(choices=[(
        'new', 'NEW'), ('providing', 'PROVIDING'), ('voting', 'VOTING'), (
        'complete', 'COMPLETE')], default='new', max_length=16)), (
        'n_players', models.IntegerField(default=1)), ('created_on', models
        .DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True)), ('card', models.ForeignKey(null=True,
        on_delete=django.db.models.deletion.SET_NULL, related_name=
        'system_round_play', to='game.Card')), ('game', models.ForeignKey(
        on_delete=django.db.models.deletion.PROTECT, related_name='rounds',
        to='game.Game')), ('turn', models.ForeignKey(null=True, on_delete=
        django.db.models.deletion.SET_NULL, to='game.Player'))], options={
        'verbose_name': 'round', 'verbose_name_plural': 'round', 'ordering':
        ('number',)}), migrations.AddField(model_name='play', name=
        'game_round', field=models.ForeignKey(on_delete=django.db.models.
        deletion.PROTECT, related_name='plays', to='game.Round')),
        migrations.AddField(model_name='play', name='player', field=models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL,
        related_name='plays', to='game.Player')), migrations.AddField(
        model_name='game', name='current_round', field=models.ForeignKey(
        null=True, on_delete=django.db.models.deletion.PROTECT,
        related_name='current_round', to='game.Round')), migrations.
        AlterUniqueTogether(name='round', unique_together=set([('game',
        'number')])), migrations.AlterUniqueTogether(name='player',
        unique_together=set([('game', 'name'), ('game', 'number'), ('game',
        'user')])), migrations.AlterUniqueTogether(name='play',
        unique_together=set([('game_round', 'player')])), migrations.
        AlterOrderWithRespectTo(name='play', order_with_respect_to='player')]

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


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Card', fields=[('id', models
        .AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('path', models.FilePathField(verbose_name=
        '/Users/jacobo/dev/dixit/server/src/../../cards')), ('name', models
        .CharField(max_length=256, null=True))], options={'verbose_name':
        'card', 'verbose_name_plural': 'cards'}), migrations.CreateModel(
        name='CardDescription', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('description', models.CharField(max_length=256)), (
        'confidence', models.IntegerField(default=50)), ('card', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='description', to='game.Card'))], options={
        'verbose_name': 'card description', 'verbose_name_plural':
        'card descriptions'}), migrations.CreateModel(name='Game', fields=[
        ('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('name', models.CharField(
        max_length=64)), ('status', models.CharField(choices=[('new', 'NEW'
        ), ('ongoing', 'ONGOING'), ('finished', 'FINISHED'), ('abandoned',
        'ABANDONED')], default='new', max_length=16)), ('created_on',
        models.DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True))], options={'verbose_name': 'game',
        'verbose_name_plural': 'games', 'ordering': ('-created_on',)}),
        migrations.CreateModel(name='Play', fields=[('id', models.AutoField
        (auto_created=True, primary_key=True, serialize=False, verbose_name
        ='ID')), ('story', models.CharField(max_length=256, null=True)), (
        'card_provided', models.ForeignKey(on_delete=django.db.models.
        deletion.PROTECT, related_name='plays', to='game.Card')), (
        'card_voted', models.ForeignKey(null=True, on_delete=django.db.
        models.deletion.PROTECT, related_name='chosen', to='game.Card'))],
        options={'verbose_name': 'play', 'verbose_name_plural': 'play'}),
        migrations.CreateModel(name='Player', fields=[('id', models.
        AutoField(auto_created=True, primary_key=True, serialize=False,
        verbose_name='ID')), ('number', models.IntegerField(default=0)), (
        'owner', models.BooleanField(default=False)), ('name', models.
        CharField(max_length=64)), ('token', models.CharField(max_length=64
        )), ('score', models.IntegerField(default=0)), ('created_on',
        models.DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True)), ('cards', models.ManyToManyField(
        related_name='played_by', to='game.Card')), ('game', models.
        ForeignKey(on_delete=django.db.models.deletion.PROTECT,
        related_name='players', to='game.Game')), ('user', models.
        ForeignKey(on_delete=django.db.models.deletion.PROTECT,
        related_name='players', to=settings.AUTH_USER_MODEL))], options={
        'verbose_name': 'player', 'verbose_name_plural': 'player',
        'ordering': ('number',)}), migrations.CreateModel(name='Round',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('number', models.
        IntegerField(default=0)), ('status', models.CharField(choices=[(
        'new', 'NEW'), ('providing', 'PROVIDING'), ('voting', 'VOTING'), (
        'complete', 'COMPLETE')], default='new', max_length=16)), (
        'n_players', models.IntegerField(default=1)), ('created_on', models
        .DateTimeField(auto_now_add=True)), ('modified_on', models.
        DateTimeField(auto_now=True)), ('card', models.ForeignKey(null=True,
        on_delete=django.db.models.deletion.SET_NULL, related_name=
        'system_round_play', to='game.Card')), ('game', models.ForeignKey(
        on_delete=django.db.models.deletion.PROTECT, related_name='rounds',
        to='game.Game')), ('turn', models.ForeignKey(null=True, on_delete=
        django.db.models.deletion.SET_NULL, to='game.Player'))], options={
        'verbose_name': 'round', 'verbose_name_plural': 'round', 'ordering':
        ('number',)}), migrations.AddField(model_name='play', name=
        'game_round', field=models.ForeignKey(on_delete=django.db.models.
        deletion.PROTECT, related_name='plays', to='game.Round')),
        migrations.AddField(model_name='play', name='player', field=models.
        ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL,
        related_name='plays', to='game.Player')), migrations.AddField(
        model_name='game', name='current_round', field=models.ForeignKey(
        null=True, on_delete=django.db.models.deletion.PROTECT,
        related_name='current_round', to='game.Round')), migrations.
        AlterUniqueTogether(name='round', unique_together=set([('game',
        'number')])), migrations.AlterUniqueTogether(name='player',
        unique_together=set([('game', 'name'), ('game', 'number'), ('game',
        'user')])), migrations.AlterUniqueTogether(name='play',
        unique_together=set([('game_round', 'player')])), migrations.
        AlterOrderWithRespectTo(name='play', order_with_respect_to='player')]

# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-02 19:31
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Card',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('path', models.FilePathField(verbose_name='/Users/jacobo/dev/dixit/server/src/../../cards')),
                ('name', models.CharField(max_length=256, null=True)),
            ],
            options={
                'verbose_name': 'card',
                'verbose_name_plural': 'cards',
            },
        ),
        migrations.CreateModel(
            name='CardDescription',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.CharField(max_length=256)),
                ('confidence', models.IntegerField(default=50)),
                ('card', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='description', to='game.Card')),
            ],
            options={
                'verbose_name': 'card description',
                'verbose_name_plural': 'card descriptions',
            },
        ),
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('status', models.CharField(choices=[('new', 'NEW'), ('ongoing', 'ONGOING'), ('finished', 'FINISHED'), ('abandoned', 'ABANDONED')], default='new', max_length=16)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': 'game',
                'verbose_name_plural': 'games',
                'ordering': ('-created_on',),
            },
        ),
        migrations.CreateModel(
            name='Play',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('story', models.CharField(max_length=256, null=True)),
                ('card_provided', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='plays', to='game.Card')),
                ('card_voted', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='chosen', to='game.Card')),
            ],
            options={
                'verbose_name': 'play',
                'verbose_name_plural': 'play',
            },
        ),
        migrations.CreateModel(
            name='Player',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.IntegerField(default=0)),
                ('owner', models.BooleanField(default=False)),
                ('name', models.CharField(max_length=64)),
                ('token', models.CharField(max_length=64)),
                ('score', models.IntegerField(default=0)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
                ('cards', models.ManyToManyField(related_name='played_by', to='game.Card')),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='players', to='game.Game')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='players', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'player',
                'verbose_name_plural': 'player',
                'ordering': ('number',),
            },
        ),
        migrations.CreateModel(
            name='Round',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.IntegerField(default=0)),
                ('status', models.CharField(choices=[('new', 'NEW'), ('providing', 'PROVIDING'), ('voting', 'VOTING'), ('complete', 'COMPLETE')], default='new', max_length=16)),
                ('n_players', models.IntegerField(default=1)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('modified_on', models.DateTimeField(auto_now=True)),
                ('card', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='system_round_play', to='game.Card')),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='rounds', to='game.Game')),
                ('turn', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='game.Player')),
            ],
            options={
                'verbose_name': 'round',
                'verbose_name_plural': 'round',
                'ordering': ('number',),
            },
        ),
        migrations.AddField(
            model_name='play',
            name='game_round',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='plays', to='game.Round'),
        ),
        migrations.AddField(
            model_name='play',
            name='player',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='plays', to='game.Player'),
        ),
        migrations.AddField(
            model_name='game',
            name='current_round',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='current_round', to='game.Round'),
        ),
        migrations.AlterUniqueTogether(
            name='round',
            unique_together=set([('game', 'number')]),
        ),
        migrations.AlterUniqueTogether(
            name='player',
            unique_together=set([('game', 'name'), ('game', 'number'), ('game', 'user')]),
        ),
        migrations.AlterUniqueTogether(
            name='play',
            unique_together=set([('game_round', 'player')]),
        ),
        migrations.AlterOrderWithRespectTo(
            name='play',
            order_with_respect_to='player',
        ),
    ]
