# 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')),
            ],
        ),
    ]

[((340, 433), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (356, 433), False, 'from django.db import migrations, models\n'), ((457, 488), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), '(max_length=40)\n', (473, 488), False, 'from django.db import migrations, models\n'), ((618, 711), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (634, 711), False, 'from django.db import migrations, models\n'), ((735, 766), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), '(max_length=40)\n', (751, 766), False, 'from django.db import migrations, models\n'), ((899, 992), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (915, 992), False, 'from django.db import migrations, models\n'), ((1016, 1047), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), '(max_length=40)\n', (1032, 1047), False, 'from django.db import migrations, models\n'), ((1074, 1104), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(3)'}), '(max_length=3)\n', (1090, 1104), False, 'from django.db import migrations, models\n'), ((1133, 1151), 'django.db.models.TextField', 'models.TextField', ([], {}), '()\n', (1149, 1151), False, 'from django.db import migrations, models\n'), ((1189, 1284), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.openingsystem"""'}), "(on_delete=django.db.models.deletion.CASCADE, to=\n    'insight.openingsystem')\n", (1206, 1284), False, 'from django.db import migrations, models\n'), ((1409, 1502), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1425, 1502), False, 'from django.db import migrations, models\n'), ((1530, 1560), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (1549, 1560), False, 'from django.db import migrations, models\n'), ((1592, 1622), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (1611, 1622), False, 'from django.db import migrations, models\n'), ((1652, 1683), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), '(max_length=40)\n', (1668, 1683), False, 'from django.db import migrations, models\n'), ((1718, 1749), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(40)'}), '(max_length=40)\n', (1734, 1749), False, 'from django.db import migrations, models\n'), ((1782, 1804), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {}), '()\n', (1802, 1804), False, 'from django.db import migrations, models\n'), ((1831, 1849), 'django.db.models.TextField', 'models.TextField', ([], {}), '()\n', (1847, 1849), False, 'from django.db import migrations, models\n'), ((1880, 1969), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.opening"""'}), "(on_delete=django.db.models.deletion.CASCADE, to=\n    'insight.opening')\n", (1897, 1969), False, 'from django.db import migrations, models\n'), ((2097, 2190), 'django.db.models.AutoField', 'models.AutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (2113, 2190), False, 'from django.db import migrations, models\n'), ((2223, 2253), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (2242, 2253), False, 'from django.db import migrations, models\n'), ((2296, 2326), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (2315, 2326), False, 'from django.db import migrations, models\n'), ((2368, 2398), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (2387, 2398), False, 'from django.db import migrations, models\n'), ((2440, 2470), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (2459, 2470), False, 'from django.db import migrations, models\n'), ((2512, 2542), 'django.db.models.IntegerField', 'models.IntegerField', ([], {'default': '(0)'}), '(default=0)\n', (2531, 2542), False, 'from django.db import migrations, models\n'), ((2570, 2656), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""insight.game"""'}), "(on_delete=django.db.models.deletion.CASCADE, to=\n    'insight.game')\n", (2587, 2656), False, 'from django.db import migrations, models\n')]