# Generated by Django 3.2.6 on 2021-11-12 03:24

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


class Migration(migrations.Migration):

    dependencies = [
        ('wpm', '0012_auto_20211111_1056'),
        ('mtm', '0030_step_need_test'),
        ('pm', '0012_alter_subproductionprogress_type'),
        ('inm', '0015_auto_20211111_0940'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='fifo',
            name='subproduction_plan',
        ),
        migrations.RemoveField(
            model_name='iproduct',
            name='fifos',
        ),
        migrations.RemoveField(
            model_name='iproduct',
            name='state',
        ),
        migrations.AddField(
            model_name='fifoitem',
            name='subproduction_plan',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='pm.subproductionplan', verbose_name='关联子生产计划'),
        ),
        migrations.CreateModel(
            name='FIFOItemProduct',
            fields=[
                ('id', models.BigAutoField(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_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('number', models.CharField(max_length=50, verbose_name='物品编号')),
                ('fifoitem', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inm.fifoitem', verbose_name='关联出入库具体产品')),
                ('material', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mtm.material', verbose_name='物料类型')),
                ('wproduct', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='wpm.wproduct', verbose_name='关联的动态产品')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
