# Generated by Django 3.0.4 on 2020-03-20 06:39

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


class Migration(migrations.Migration):

    dependencies = [
        ('examtest', '0011_auto_20200320_1115'),
    ]

    operations = [
        migrations.CreateModel(
            name='Paper',
            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='删除标记')),
                ('name', models.CharField(max_length=200, verbose_name='名称')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.DeleteModel(
            name='PaperTest',
        ),
        migrations.AlterModelOptions(
            name='examtest',
            options={'verbose_name': '考试表', 'verbose_name_plural': '考试表'},
        ),
        migrations.AlterField(
            model_name='examtest',
            name='rule',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='examtest.TestRule', verbose_name='所用规则'),
        ),
        migrations.AlterField(
            model_name='examtest',
            name='type',
            field=models.CharField(choices=[('自助模考', '自助模考'), ('押卷模考', '押卷模考')], default='自助模考', max_length=50, verbose_name='考试类型'),
        ),
        migrations.AddField(
            model_name='examtest',
            name='paper',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='examtest.Paper', verbose_name='所用试卷'),
        ),
    ]
