# Generated by Django 2.2.3 on 2019-08-16 14:01

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='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title_number', models.CharField(max_length=50)),
                ('question', models.CharField(max_length=5000)),
                ('totalSub', models.IntegerField(default=0)),
                ('totalSuccessfulSub', models.IntegerField(default=0)),
                ('accuracy', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('totalScore', models.IntegerField(default=0)),
                ('totalAttempts', models.IntegerField(default=0)),
                ('email1', models.EmailField(default='xyx@gmail.com', max_length=254)),
                ('email2', models.EmailField(default='xyx@gmail.com', max_length=254)),
                ('phone1', models.CharField(max_length=10)),
                ('phone2', models.CharField(max_length=10)),
                ('name1', models.CharField(max_length=100)),
                ('name2', models.CharField(max_length=100)),
                ('latestSubTime', models.CharField(max_length=10)),
                ('scoreQuestion1', models.IntegerField(default=0)),
                ('scoreQuestion2', models.IntegerField(default=0)),
                ('scoreQuestion3', models.IntegerField(default=0)),
                ('scoreQuestion4', models.IntegerField(default=0)),
                ('scoreQuestion5', models.IntegerField(default=0)),
                ('scoreQuestion6', models.IntegerField(default=0)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Submission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=1000)),
                ('subStatus', models.BooleanField(default=False)),
                ('subTime', models.CharField(default='', max_length=10)),
                ('subScore', models.IntegerField(default=0)),
                ('que', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='userApp.Question')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
