# Generated by Django 3.1.4 on 2022-07-25 07:47

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 = [
        ('inventory', '0155_stackdetails_is_delete'),
        ('product', '0034_product_shelf_life'),
        ('company', '0300_user_roles'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('mes', '0040_auto_20220721_1503'),
    ]

    operations = [
        migrations.CreateModel(
            name='LabelBindPX',
            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='生产批次')),
                ('prd_shop', models.CharField(blank=True, max_length=20, null=True, verbose_name='车间')),
                ('prd_line', models.CharField(blank=True, max_length=20, null=True, verbose_name='产线')),
                ('prd_team', models.CharField(blank=True, max_length=20, null=True, verbose_name='班组')),
                ('carton_code', models.CharField(db_index=True, max_length=20, verbose_name='箱标')),
                ('carton_related', models.CharField(blank=True, db_index=True, max_length=20, null=True, verbose_name='关联箱标')),
                ('bottle_code', models.CharField(db_index=True, max_length=20, verbose_name='瓶标')),
                ('is_delete', models.BooleanField(blank=True, db_index=True, default=False, null=True, verbose_name='是否删除')),
                ('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='产品')),
                ('store', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='inventory.storehouse', 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': '瓶箱(箱箱)在线绑定',
            },
        ),
    ]
