# Generated by Django 3.2.6 on 2021-10-19 01:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('mtm', '0024_alter_recordformfield_rule_expression'),
        ('pm', '0004_subproductionplan_steps'),
    ]

    operations = [
        migrations.AddField(
            model_name='subproductionplan',
            name='state',
            field=models.IntegerField(default=0, verbose_name='状态'),
        ),
        migrations.CreateModel(
            name='SubProductionProgress',
            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='删除标记')),
                ('type', models.IntegerField(default=1, verbose_name='物料应用类型')),
                ('count', models.IntegerField(verbose_name='应出入数')),
                ('count_real', models.IntegerField(verbose_name='实际出入数')),
                ('material', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='mtm.material', verbose_name='关联物料')),
                ('subproduction_plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='progress_subplan', to='pm.subproductionplan', verbose_name='关联子生产计划')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
