1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Generated by Django 2.1 on 2018-10-12 09:51
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'),
),
]
|