# Generated by Django 3.1 on 2020-09-08 07:43

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='OpeningSystem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40)),
            ],
        ),
        migrations.CreateModel(
            name='Opening',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40)),
                ('eco', models.CharField(max_length=3)),
                ('moves', models.TextField()),
                ('opening_system', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='insight.openingsystem')),
            ],
        ),
        migrations.CreateModel(
            name='Game',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('elo_mean', models.IntegerField(default=0)),
                ('elo_diff', models.IntegerField(default=0)),
                ('result', models.CharField(max_length=40)),
                ('timecontrol', models.CharField(max_length=40)),
                ('timestamp', models.DateTimeField()),
                ('raw', models.TextField()),
                ('opening', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='insight.opening')),
            ],
        ),
        migrations.CreateModel(
            name='Analyse',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('turnover_move', models.IntegerField(default=0)),
                ('turnover_evaluation', models.IntegerField(default=0)),
                ('unbalance_material', models.IntegerField(default=0)),
                ('unbalance_officers', models.IntegerField(default=0)),
                ('unbalance_exchange', models.IntegerField(default=0)),
                ('game', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='insight.game')),
            ],
        ),
    ]

[(18, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (19, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), False, 'from django.db import migrations, models\n'), (25, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (26, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), False, 'from django.db import migrations, models\n'), (32, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (33, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), False, 'from django.db import migrations, models\n'), (34, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(3)'}), False, 'from django.db import migrations, models\n'), (35, 'django.db.models.TextField', 'models.TextField', ([], {}), False, 'from django.db import migrations, models\n'), (36, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.openingsystem"""'}), False, 'from django.db import migrations, models\n'), (42, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (43, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (44, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (45, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), False, 'from django.db import migrations, models\n'), (46, 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), False, 'from django.db import migrations, models\n'), (47, 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {}), False, 'from django.db import migrations, models\n'), (48, 'django.db.models.TextField', 'models.TextField', ([], {}), False, 'from django.db import migrations, models\n'), (49, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.opening"""'}), False, 'from django.db import migrations, models\n'), (55, 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), False, 'from django.db import migrations, models\n'), (56, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (57, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (58, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (59, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (60, 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), False, 'from django.db import migrations, models\n'), (61, 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.game"""'}), False, 'from django.db import migrations, models\n')]