# Generated by Django 3.0.4 on 2021-03-14 09:16

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('examtest', '0024_auto_20200402_2353'),
    ]

    operations = [
        migrations.AddField(
            model_name='workscope',
            name='can_exam',
            field=models.BooleanField(default=False, verbose_name='是否可组织考试'),
        ),
        migrations.AlterField(
            model_name='examtest',
            name='type',
            field=models.CharField(choices=[('自助模考', '自助模考'), ('押卷模考', '押卷模考'), ('正式考试', '正式考试')], default='自助模考', max_length=50, verbose_name='考试类型'),
        ),
        migrations.CreateModel(
            name='Exam',
            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='删除标记')),
                ('code', models.CharField(blank=True, max_length=100, null=True, verbose_name='考试编号')),
                ('name', models.CharField(max_length=100, verbose_name='名称')),
                ('place', models.CharField(blank=True, max_length=100, null=True, verbose_name='考试地点')),
                ('opentime', models.DateTimeField(blank=True, null=True, verbose_name='开启时间')),
                ('closetime', models.DateTimeField(blank=True, null=True, verbose_name='关闭时间')),
                ('proctor_name', models.CharField(max_length=100, verbose_name='监考人姓名')),
                ('proctor_phone', models.CharField(max_length=100, verbose_name='监考人联系方式')),
                ('create_admin', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='exam_create_admin', to=settings.AUTH_USER_MODEL)),
                ('workscope', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='examtest.WorkScope', verbose_name='工作类别')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='examtest',
            name='exam',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='examtest_exam', to='examtest.Exam', verbose_name='关联的正式考试'),
        ),
    ]
