# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-22 16:31
from __future__ import unicode_literals

import datetime
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='Assignments',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(blank=True, max_length=200, null=True)),
                ('disc', models.CharField(blank=True, max_length=200, null=True)),
                ('fil', models.FileField(upload_to='documents/asignments')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Attendance',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('day', models.DateField(blank=True, default=datetime.date.today, null=True)),
                ('status', models.CharField(choices=[('present', 'present'), ('absent', 'absent')], default='present', max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Mcqs',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('test_id', models.CharField(blank=True, max_length=50, null=True)),
                ('name', models.CharField(blank=True, max_length=80, null=True)),
                ('marks', models.IntegerField(default=0)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profilechild',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('picture', models.ImageField(blank=True, upload_to='profile_images')),
                ('univno', models.IntegerField(default=0)),
                ('about', models.TextField(default='', max_length=150)),
                ('phone', models.CharField(default='', max_length=50)),
                ('email', models.CharField(default='', max_length=50)),
                ('gender', models.CharField(default='', max_length=50)),
                ('department', models.CharField(default='', max_length=50)),
                ('division', models.CharField(default='', max_length=50)),
                ('father', models.CharField(default='', max_length=50)),
                ('mother', models.CharField(default='', max_length=50)),
                ('address', models.TextField(default='', max_length=150)),
            ],
        ),
        migrations.CreateModel(
            name='Profileparent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('picture', models.ImageField(blank=True, upload_to='profile_images')),
                ('about', models.TextField(blank=True, max_length=150, null=True)),
                ('phone', models.CharField(blank=True, max_length=50, null=True)),
                ('email', models.CharField(blank=True, max_length=50, null=True)),
                ('gender', models.CharField(blank=True, max_length=50, null=True)),
                ('address', models.TextField(blank=True, max_length=150, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Profileteacher',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('picture', models.ImageField(blank=True, upload_to='profile_images')),
                ('idno', models.IntegerField(blank=True, default=0, null=True)),
                ('qualification', models.CharField(blank=True, max_length=30, null=True)),
                ('about', models.TextField(blank=True, max_length=150)),
                ('phone', models.CharField(blank=True, max_length=50, null=True)),
                ('email', models.CharField(blank=True, max_length=50)),
                ('gender', models.CharField(blank=True, max_length=50)),
                ('department', models.CharField(blank=True, max_length=50)),
                ('address', models.TextField(blank=True, max_length=150)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('question', models.CharField(blank=True, max_length=200, null=True)),
                ('c1', models.CharField(blank=True, max_length=200, null=True)),
                ('c2', models.CharField(blank=True, max_length=200, null=True)),
                ('c3', models.CharField(blank=True, max_length=200, null=True)),
                ('c4', models.CharField(blank=True, max_length=200, null=True)),
                ('options', models.CharField(choices=[(models.CharField(blank=True, max_length=200, null=True), 'c1'), (models.CharField(blank=True, max_length=200, null=True), 'c2'), (models.CharField(blank=True, max_length=200, null=True), 'c3'), (models.CharField(blank=True, max_length=200, null=True), 'c4')], default='c1', max_length=200)),
                ('answer', models.CharField(blank=True, max_length=200, null=True)),
                ('marks', models.IntegerField(default=0)),
                ('mcq', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sappsapp.Mcqs')),
            ],
        ),
        migrations.CreateModel(
            name='Resources',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(blank=True, max_length=200, null=True)),
                ('disc', models.CharField(blank=True, max_length=200, null=True)),
                ('video', models.FileField(upload_to='documents/video')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Univresults',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('semid', models.IntegerField(default=0)),
                ('sub1', models.CharField(blank=True, max_length=200, null=True)),
                ('mark1', models.IntegerField(default=0)),
                ('intern1', models.IntegerField(default=0)),
                ('intern1max', models.IntegerField(default=0)),
                ('max1', models.IntegerField(default=0)),
                ('total1', models.IntegerField(default=0)),
                ('res1', models.CharField(blank=True, max_length=200, null=True)),
                ('total', models.IntegerField(default=0)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='profileparent',
            name='teacher',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sappsapp.Profileteacher'),
        ),
        migrations.AddField(
            model_name='profileparent',
            name='user',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='profilechild',
            name='teacher',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sappsapp.Profileteacher'),
        ),
        migrations.AddField(
            model_name='profilechild',
            name='user',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='attendance',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sappsapp.Profilechild'),
        ),
    ]
