# Generated by Django 3.0.4 on 2020-03-31 01:01

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('question', '0008_auto_20200325_0959'),
        ('examtest', '0017_banner'),
    ]

    operations = [
        migrations.AddField(
            model_name='paper',
            name='limit',
            field=models.IntegerField(default=0, verbose_name='限时(分钟)'),
        ),
        migrations.AddField(
            model_name='paper',
            name='pass_score',
            field=models.FloatField(default=0, verbose_name='及格分数'),
        ),
        migrations.AddField(
            model_name='paper',
            name='total_score',
            field=models.FloatField(default=0, verbose_name='满分'),
        ),
        migrations.AddField(
            model_name='paper',
            name='workscope',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='examtest.WorkScope', verbose_name='名称'),
        ),
        migrations.CreateModel(
            name='PaperQuestions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_delete', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('score', models.FloatField(default=0, verbose_name='满分')),
                ('paper', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='examtest.Paper', verbose_name='试卷')),
                ('question', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='question.Question', verbose_name='试题')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='paper',
            name='questions',
            field=models.ManyToManyField(through='examtest.PaperQuestions', to='question.Question'),
        ),
    ]
