# Generated by Django 3.2.6 on 2021-11-11 02:56

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


class Migration(migrations.Migration):

    dependencies = [
        ('mtm', '0029_step_type'),
        ('wpm', '0011_alter_operationrecorditem_operation_record'),
    ]

    operations = [
        migrations.AddField(
            model_name='operation',
            name='use_scrap',
            field=models.BooleanField(default=False, verbose_name='是否使用的边角料'),
        ),
        migrations.AddField(
            model_name='wproduct',
            name='pre_pstate',
            field=models.ForeignKey(blank=True, help_text='已执行完的步骤', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='w_pre_pstate', to='mtm.step', verbose_name='已执行到'),
        ),
        migrations.AlterField(
            model_name='operationmaterial',
            name='count',
            field=models.IntegerField(validators=[django.core.validators.MinValueValidator(0)], verbose_name='消耗或产出数量'),
        ),
        migrations.AlterField(
            model_name='wmaterial',
            name='count',
            field=models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)], verbose_name='当前数量'),
        ),
        migrations.AlterField(
            model_name='wproduct',
            name='p_state',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='w_ptate', to='mtm.step', verbose_name='所在步骤'),
        ),
    ]
