# Generated by Django 3.1.4 on 2021-06-12 09:17

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0211_third_party_label_bind_remark'),
        ('mes', '0017_auto_20210611_1730'),
    ]

    operations = [
        migrations.AddField(
            model_name='batch',
            name='order',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mesbatch_order', to='mes.order', verbose_name='生产订单'),
        ),
        migrations.AlterField(
            model_name='order',
            name='code',
            field=models.CharField(default='', max_length=20, verbose_name='订单编号'),
            preserve_default=False,
        ),
        migrations.AlterUniqueTogether(
            name='order',
            unique_together={('company', 'code')},
        ),
    ]
