# Generated by Django 3.2.12 on 2024-07-01 01:36

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


class Migration(migrations.Migration):

    dependencies = [
        ('pm', '0018_mtask_hour_work'),
        ('mtm', '0031_process_into_wm_mgroup'),
        ('system', '0004_auto_20240605_1011'),
        ('wpm', '0049_auto_20240522_1447'),
    ]

    operations = [
        migrations.AddField(
            model_name='handover',
            name='recive_mgroup',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='handover_recive_mgroup', to='mtm.mgroup', verbose_name='接收工段'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='hour_work',
            field=models.FloatField(blank=True, null=True, verbose_name='预计工时'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='work_end_time',
            field=models.DateTimeField(blank=True, null=True, verbose_name='生产结束时间'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='work_start_time',
            field=models.DateTimeField(blank=True, null=True, verbose_name='生产开始时间'),
        ),
        migrations.AddField(
            model_name='mlogb',
            name='batch',
            field=models.CharField(blank=True, max_length=50, null=True, verbose_name='批次号'),
        ),
        migrations.AddField(
            model_name='mlogb',
            name='count_real',
            field=models.PositiveIntegerField(default=0, verbose_name='实际生产数'),
        ),
        migrations.AddField(
            model_name='mlogb',
            name='count_use',
            field=models.PositiveIntegerField(default=0, verbose_name='领用数量'),
        ),
        migrations.AddField(
            model_name='mlogb',
            name='material_in',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mlogb_material_in', to='mtm.material', verbose_name='投入物料'),
        ),
        migrations.AddField(
            model_name='mlogb',
            name='mtask',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mlogb_mtask', to='pm.mtask', verbose_name='关联任务'),
        ),
        migrations.AddField(
            model_name='wmaterial',
            name='mgroup',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mtm.mgroup', verbose_name='所在工段'),
        ),
        migrations.AlterField(
            model_name='mlog',
            name='handle_date',
            field=models.DateField(blank=True, null=True, verbose_name='操作日期'),
        ),
        migrations.AlterField(
            model_name='mlogb',
            name='material_out',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mlogb_material_out', to='mtm.material', verbose_name='产物'),
        ),
        migrations.AlterUniqueTogether(
            name='wmaterial',
            unique_together={('material', 'batch', 'belong_dept', 'mgroup')},
        ),
    ]
