# Generated by Django 3.2.12 on 2023-10-30 08:45

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


class Migration(migrations.Migration):

    dependencies = [
        ('em', '0005_auto_20230906_1431'),
        ('mtm', '0020_material_cate'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('pm', '0013_mtask_is_count_utask'),
        ('wpm', '0015_auto_20231030_1133'),
    ]

    operations = [
        migrations.AddField(
            model_name='mlog',
            name='count_real_weight',
            field=models.FloatField(default=0, verbose_name='生产重量'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='equipment',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='em.equipment', verbose_name='生产设备'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='handle_users',
            field=models.ManyToManyField(blank=True, to=settings.AUTH_USER_MODEL, verbose_name='操作人(多选)'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='material_out',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mtm.material', verbose_name='产物'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='mgroup',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='mtm.mgroup', verbose_name='工段'),
        ),
        migrations.AddField(
            model_name='mlog',
            name='note',
            field=models.TextField(default=0, verbose_name='备注'),
        ),
        migrations.AlterField(
            model_name='mlog',
            name='mtask',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='pm.mtask', verbose_name='关联任务'),
        ),
    ]
