# Generated by Django 3.0.4 on 2020-03-17 07:04

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('question', '0006_auto_20200317_1445'),
    ]

    operations = [
        migrations.CreateModel(
            name='TestRule',
            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, unique=True, verbose_name='名称')),
                ('detail', django.contrib.postgres.fields.jsonb.JSONField(verbose_name='试卷结构')),
                ('questioncat', models.ManyToManyField(to='question.Questioncat', verbose_name='所选题库')),
                ('subject', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subject', to='question.Questioncat', verbose_name='所属学科')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
