summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.gitignore1
-rw-r--r--website/migrations/0004_auto_20181010_0942.py45
2 files changed, 45 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 54ecb61..fd97ce3 100755
--- a/.gitignore
+++ b/.gitignore
@@ -18,7 +18,6 @@ static/tmp/
db.sqlite3
# Django Migration files
-migrations/
#MAC OS specific
.DS_Store \ No newline at end of file
diff --git a/website/migrations/0004_auto_20181010_0942.py b/website/migrations/0004_auto_20181010_0942.py
new file mode 100644
index 0000000..7d3f607
--- /dev/null
+++ b/website/migrations/0004_auto_20181010_0942.py
@@ -0,0 +1,45 @@
+# Generated by Django 2.1 on 2018-10-10 09:42
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('website', '0003_auto_20180919_1026'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='AnswerPaper',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('validate_ans', models.BooleanField()),
+ ('date', models.DateTimeField(auto_now=True)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='Question',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('question', models.TextField()),
+ ('option_1', models.CharField(max_length=255)),
+ ('option_2', models.CharField(max_length=255)),
+ ('option_3', models.CharField(max_length=255)),
+ ('option_4', models.CharField(max_length=255)),
+ ('correct_answer', models.CharField(help_text='please write it as written in the option above(Case-sensitive)', max_length=255)),
+ ('question_day', models.DateField()),
+ ],
+ ),
+ migrations.AddField(
+ model_name='answerpaper',
+ name='answered_q',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Question'),
+ ),
+ migrations.AddField(
+ model_name='answerpaper',
+ name='participant',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website.Profile'),
+ ),
+ ]