# Generated by Django 5.2.8 on 2026-05-08 09:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('basic_info', '0026_transportvehicle_and_capacity'),
        ('contenttypes', '0002_remove_content_type_name'),
        ('mes', '0002_device_capacity_unit_device_peak_capacity_and_more'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.AddField(
            model_name='productionassignment',
            name='production_quantity',
            field=models.PositiveIntegerField(default=100, verbose_name='生产数量'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='productionassignment',
            name='status',
            field=models.IntegerField(choices=[(1, 'Draft'), (2, '已发布'), (3, '已接收'), (4, '已取消'), (5, '已完工')], default=1, verbose_name='状态'),
        ),
        migrations.AddIndex(
            model_name='productionassignment',
            index=models.Index(fields=['merchant', 'status', 'created_at'], name='mes_product_merchan_3ae0e6_idx'),
        ),
    ]
