# Generated by Django 3.2.6 on 2021-08-30 03:29

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


class Migration(migrations.Migration):

    dependencies = [
        ('mtm', '0003_auto_20210827_1604'),
    ]

    operations = [
        migrations.AddField(
            model_name='inputmaterial',
            name='process',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='mtm.process', verbose_name='关联工序'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='inputmaterial',
            name='product',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='inputmaterial_product', to='mtm.material', verbose_name='关联产品'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='inputmaterial',
            name='sort',
            field=models.IntegerField(default=1, verbose_name='排序号'),
        ),
        migrations.AddField(
            model_name='outputmaterial',
            name='process',
            field=models.ForeignKey(default=2, on_delete=django.db.models.deletion.CASCADE, to='mtm.process', verbose_name='关联工序'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='outputmaterial',
            name='product',
            field=models.ForeignKey(default=3, on_delete=django.db.models.deletion.CASCADE, related_name='outputmaterial_product', to='mtm.material', verbose_name='关联产品'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='outputmaterial',
            name='sort',
            field=models.IntegerField(default=1, verbose_name='排序号'),
        ),
        migrations.AlterField(
            model_name='inputmaterial',
            name='material',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inputmaterial', to='mtm.material', verbose_name='输入物料'),
        ),
        migrations.AlterField(
            model_name='inputmaterial',
            name='number',
            field=models.FloatField(default=1, verbose_name='消耗量'),
        ),
        migrations.AlterField(
            model_name='outputmaterial',
            name='material',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='outputmaterial', to='mtm.material', verbose_name='输出物料'),
        ),
        migrations.AlterField(
            model_name='outputmaterial',
            name='number',
            field=models.FloatField(default=1, verbose_name='产出量'),
        ),
    ]
