# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-29 10:55
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):

    replaces = [('app', '0001_initial'), ('app', '0002_auto_20170525_2354')]

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='AnswerChoice',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=100)),
                ('is_correct', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='Exam',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
                ('num_questions', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ExamCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16)),
                ('expiry_date', models.DateTimeField()),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Exam')),
            ],
        ),
        migrations.CreateModel(
            name='Group',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40)),
            ],
        ),
        migrations.CreateModel(
            name='GroupExamLink',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('due_date', models.DateField()),
                ('creation_date', models.DateField(auto_now_add=True)),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Exam')),
                ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Group')),
            ],
        ),
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type', models.CharField(choices=[('SINGLE', 'Single choice'), ('MULTIPLE', 'Multiple choice')], max_length=1)),
                ('text', models.TextField()),
                ('rating', models.IntegerField(default=1500)),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='app.Exam')),
            ],
        ),
        migrations.CreateModel(
            name='RegistrationCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16, unique=True)),
                ('used', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='UserX',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16, unique=True)),
                ('rating', models.IntegerField(default=1500)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='group',
            name='exams',
            field=models.ManyToManyField(through='app.GroupExamLink', to='app.Exam'),
        ),
        migrations.AddField(
            model_name='group',
            name='members',
            field=models.ManyToManyField(to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='answerchoice',
            name='question',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='app.Question'),
        ),
    ]

1628695f136037659a90031be6c51a0718b793c5
<mask token>

<mask token>


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

<mask token>


class Migration(migrations.Migration):
    replaces = [('app', '0001_initial'), ('app', '0002_auto_20170525_2354')]
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='AnswerChoice', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('text', models.CharField(max_length=
        100)), ('is_correct', models.BooleanField())]), migrations.
        CreateModel(name='Exam', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=30)), ('num_questions',
        models.IntegerField())]), migrations.CreateModel(name='ExamCode',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('code', models.CharField(
        max_length=16)), ('expiry_date', models.DateTimeField()), ('exam',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app.Exam'))]), migrations.CreateModel(name='Group', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=40
        ))]), migrations.CreateModel(name='GroupExamLink', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('due_date', models.DateField()), (
        'creation_date', models.DateField(auto_now_add=True)), ('exam',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app.Exam')), ('group', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='app.Group'))]), migrations.CreateModel
        (name='Question', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('type',
        models.CharField(choices=[('SINGLE', 'Single choice'), ('MULTIPLE',
        'Multiple choice')], max_length=1)), ('text', models.TextField()),
        ('rating', models.IntegerField(default=1500)), ('exam', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='questions', to='app.Exam'))]), migrations.CreateModel
        (name='RegistrationCode', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('code', models.CharField(max_length=16, unique=True)), (
        'used', models.BooleanField(default=False))]), migrations.
        CreateModel(name='UserX', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('code', models.CharField(max_length=16, unique=True)), (
        'rating', models.IntegerField(default=1500)), ('user', models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        settings.AUTH_USER_MODEL))]), migrations.AddField(model_name=
        'group', name='exams', field=models.ManyToManyField(through=
        'app.GroupExamLink', to='app.Exam')), migrations.AddField(
        model_name='group', name='members', field=models.ManyToManyField(to
        =settings.AUTH_USER_MODEL)), migrations.AddField(model_name=
        'answerchoice', name='question', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, related_name='answers', to=
        'app.Question'))]

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):
    replaces = [('app', '0001_initial'), ('app', '0002_auto_20170525_2354')]
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='AnswerChoice', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('text', models.CharField(max_length=
        100)), ('is_correct', models.BooleanField())]), migrations.
        CreateModel(name='Exam', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('name', models.CharField(max_length=30)), ('num_questions',
        models.IntegerField())]), migrations.CreateModel(name='ExamCode',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('code', models.CharField(
        max_length=16)), ('expiry_date', models.DateTimeField()), ('exam',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app.Exam'))]), migrations.CreateModel(name='Group', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('name', models.CharField(max_length=40
        ))]), migrations.CreateModel(name='GroupExamLink', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('due_date', models.DateField()), (
        'creation_date', models.DateField(auto_now_add=True)), ('exam',
        models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'app.Exam')), ('group', models.ForeignKey(on_delete=django.db.
        models.deletion.CASCADE, to='app.Group'))]), migrations.CreateModel
        (name='Question', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('type',
        models.CharField(choices=[('SINGLE', 'Single choice'), ('MULTIPLE',
        'Multiple choice')], max_length=1)), ('text', models.TextField()),
        ('rating', models.IntegerField(default=1500)), ('exam', models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE,
        related_name='questions', to='app.Exam'))]), migrations.CreateModel
        (name='RegistrationCode', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('code', models.CharField(max_length=16, unique=True)), (
        'used', models.BooleanField(default=False))]), migrations.
        CreateModel(name='UserX', fields=[('id', models.AutoField(
        auto_created=True, primary_key=True, serialize=False, verbose_name=
        'ID')), ('code', models.CharField(max_length=16, unique=True)), (
        'rating', models.IntegerField(default=1500)), ('user', models.
        OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=
        settings.AUTH_USER_MODEL))]), migrations.AddField(model_name=
        'group', name='exams', field=models.ManyToManyField(through=
        'app.GroupExamLink', to='app.Exam')), migrations.AddField(
        model_name='group', name='members', field=models.ManyToManyField(to
        =settings.AUTH_USER_MODEL)), migrations.AddField(model_name=
        'answerchoice', name='question', field=models.ForeignKey(on_delete=
        django.db.models.deletion.CASCADE, related_name='answers', to=
        'app.Question'))]

# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-29 10:55
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):

    replaces = [('app', '0001_initial'), ('app', '0002_auto_20170525_2354')]

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='AnswerChoice',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('text', models.CharField(max_length=100)),
                ('is_correct', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='Exam',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
                ('num_questions', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ExamCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16)),
                ('expiry_date', models.DateTimeField()),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Exam')),
            ],
        ),
        migrations.CreateModel(
            name='Group',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40)),
            ],
        ),
        migrations.CreateModel(
            name='GroupExamLink',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('due_date', models.DateField()),
                ('creation_date', models.DateField(auto_now_add=True)),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Exam')),
                ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Group')),
            ],
        ),
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type', models.CharField(choices=[('SINGLE', 'Single choice'), ('MULTIPLE', 'Multiple choice')], max_length=1)),
                ('text', models.TextField()),
                ('rating', models.IntegerField(default=1500)),
                ('exam', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='app.Exam')),
            ],
        ),
        migrations.CreateModel(
            name='RegistrationCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16, unique=True)),
                ('used', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='UserX',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=16, unique=True)),
                ('rating', models.IntegerField(default=1500)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='group',
            name='exams',
            field=models.ManyToManyField(through='app.GroupExamLink', to='app.Exam'),
        ),
        migrations.AddField(
            model_name='group',
            name='members',
            field=models.ManyToManyField(to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='answerchoice',
            name='question',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='app.Question'),
        ),
    ]
