# Generated by Django 3.0.5 on 2021-04-13 09:04

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('system', '0016_auto_20210331_1040'),
        ('quality', '0003_auto_20210412_1407'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='subinspecttask',
            name='leader',
        ),
        migrations.AddField(
            model_name='inspectrecord',
            name='checker',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='检查人'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='inspectrecord',
            name='imgs',
            field=models.ManyToManyField(to='system.File', verbose_name='检查图片'),
        ),
        migrations.AddField(
            model_name='inspectrecord',
            name='subtask',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='quality.SubInspectTask', verbose_name='关联子任务'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='inspecttask',
            name='state',
            field=models.CharField(choices=[('创建中', '创建中'), ('待发布', '待发布'), ('执行中', '执行中'), ('已关闭', '已关闭')], default='创建中', max_length=50, verbose_name='任务状态'),
        ),
    ]
