# Generated by Django 3.2.12 on 2025-01-02 00:58

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


class Migration(migrations.Migration):

    dependencies = [
        ('qm', '0032_defect_note'),
        ('inm', '0022_mioitemw'),
    ]

    operations = [
        migrations.AddField(
            model_name='materialbatch',
            name='defect',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='qm.defect', verbose_name='缺陷'),
        ),
        migrations.AddField(
            model_name='materialbatch',
            name='state',
            field=models.PositiveSmallIntegerField(choices=[(10, '合格'), (20, '不合格'), (30, '返修'), (40, '检验'), (50, '报废')], default=10, verbose_name='状态'),
        ),
        migrations.AlterField(
            model_name='mioitem',
            name='is_testok',
            field=models.BooleanField(blank=True, null=True, verbose_name='检验是否合格'),
        ),
    ]
