# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-09-04 14:51
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import otree.db.models
import otree_save_the_change.mixins


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('otree', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Group',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('id_in_subsession', otree.db.models.PositiveIntegerField(db_index=True, null=True)),
                ('round_number', otree.db.models.PositiveIntegerField(db_index=True, null=True)),
                ('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='voiture_autonome_group', to='otree.Session')),
            ],
            options={
                'db_table': 'voiture_autonome_group',
            },
            bases=(otree_save_the_change.mixins.SaveTheChange, models.Model),
        ),
        migrations.CreateModel(
            name='Player',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('id_in_group', otree.db.models.PositiveIntegerField(db_index=True, null=True)),
                ('_payoff', otree.db.models.CurrencyField(default=0, null=True)),
                ('round_number', otree.db.models.PositiveIntegerField(db_index=True, null=True)),
                ('_gbat_arrived', otree.db.models.BooleanField(choices=[(True, 'Yes'), (False, 'No')], default=False)),
                ('_gbat_grouped', otree.db.models.BooleanField(choices=[(True, 'Yes'), (False, 'No')], default=False)),
                ('treatment', otree.db.models.StringField(choices=[('Conducteur', 'Conducteur'), ('Decideur', 'Decideur')], max_length=10000, null=True)),
                ('pop1_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop1_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop1_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop2_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop2_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop2_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop3_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop3_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop3_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop4_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop4_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop4_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop5_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop5_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop5_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop6_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop6_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop6_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop7_nb1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop7_nb2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop7_nb3', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop8_leg1', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('pop8_leg2', otree.db.models.IntegerField(choices=[(0, 0), (1, 1), (2, 2)], default=0, null=True)),
                ('group', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='voiture_autonome.Group')),
                ('participant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='voiture_autonome_player', to='otree.Participant')),
                ('session', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='voiture_autonome_player', to='otree.Session')),
            ],
            options={
                'db_table': 'voiture_autonome_player',
            },
            bases=(otree_save_the_change.mixins.SaveTheChange, models.Model),
        ),
        migrations.CreateModel(
            name='Subsession',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('round_number', otree.db.models.PositiveIntegerField(db_index=True, null=True)),
                ('session', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='voiture_autonome_subsession', to='otree.Session')),
            ],
            options={
                'db_table': 'voiture_autonome_subsession',
            },
            bases=(otree_save_the_change.mixins.SaveTheChange, models.Model),
        ),
        migrations.AddField(
            model_name='player',
            name='subsession',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='voiture_autonome.Subsession'),
        ),
        migrations.AddField(
            model_name='group',
            name='subsession',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='voiture_autonome.Subsession'),
        ),
    ]
