# Generated by Django 3.1.4 on 2022-07-21 10:06

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0034_product_shelf_life'),
        ('company', '0300_user_roles'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('mes', '0035_auto_20220422_0857'),
    ]

    operations = [
        migrations.CreateModel(
            name='LabelBindPH',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('qc', models.CharField(blank=True, max_length=20, null=True, verbose_name='质检')),
                ('batch_no', models.CharField(blank=True, max_length=20, null=True, verbose_name='生产批次')),
                ('prdshop', models.CharField(blank=True, max_length=20, null=True, verbose_name='车间')),
                ('prdline', models.CharField(blank=True, max_length=20, null=True, verbose_name='产线')),
                ('prdteam', models.CharField(blank=True, max_length=20, null=True, verbose_name='班组')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
                ('label_pkg', models.SmallIntegerField(db_index=True, verbose_name='标签类型')),
                ('is_parent', models.BooleanField(db_index=True, default=False, verbose_name='标签是否为父级')),
                ('parent_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='标签父级ID')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('dt', models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='日期')),
                ('tm', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='所属企业')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='操作员')),
            ],
            options={
                'verbose_name': '瓶盒在线绑定',
                'verbose_name_plural': '瓶盒在线绑定',
            },
        ),
        migrations.CreateModel(
            name='LabelBindHX',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('qc', models.CharField(blank=True, max_length=20, null=True, verbose_name='质检')),
                ('batch_no', models.CharField(blank=True, max_length=20, null=True, verbose_name='生产批次')),
                ('prdshop', models.CharField(blank=True, max_length=20, null=True, verbose_name='车间')),
                ('prdline', models.CharField(blank=True, max_length=20, null=True, verbose_name='产线')),
                ('prdteam', models.CharField(blank=True, max_length=20, null=True, verbose_name='班组')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
                ('label_pkg', models.SmallIntegerField(db_index=True, verbose_name='标签类型')),
                ('is_parent', models.BooleanField(db_index=True, default=False, verbose_name='标签是否为父级')),
                ('parent_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='标签父级ID')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('dt', models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='日期')),
                ('tm', models.DateTimeField(blank=True, default=django.utils.timezone.now, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='所属企业')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='操作员')),
            ],
            options={
                'verbose_name': '盒箱(箱箱)在线绑定',
                'verbose_name_plural': '盒箱(箱箱)在线绑定',
            },
        ),
    ]
