# Generated by Django 3.1.4 on 2022-02-21 14:07

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('company', '0277_remove_cgroup_privileges'),
        ('product', '0030_product_is_banquet'),
        ('erp', '0009_salesorder_marking'),
        ('thirdparty', '0009_objectsync'),
    ]

    operations = [
        migrations.CreateModel(
            name='InkJetBatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('qty_x', models.IntegerField(default=0, verbose_name='订单箱数')),
                ('qty_h', models.IntegerField(default=0, verbose_name='订单盒数')),
                ('qty_p', models.IntegerField(default=0, verbose_name='订单瓶数')),
                ('marking', models.CharField(blank=True, max_length=100, null=True, verbose_name='喷码信息')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inkjetbatch_company', to='company.company', verbose_name='企业名称')),
                ('product', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品')),
                ('salesorder', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='erp.salesorder', verbose_name='销售订单')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='用户帐号')),
            ],
            options={
                'verbose_name': '喷码机数据上传BATCH',
                'verbose_name_plural': '喷码机数据上传BATCH',
            },
        ),
        migrations.CreateModel(
            name='InkJetDetails',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
                ('label_pk_id', models.BigIntegerField(blank=True, null=True, verbose_name='主箱标ID')),
                ('label_pkg', models.SmallIntegerField(blank=True, db_index=True, null=True, verbose_name='标签类别')),
                ('is_ok', models.BooleanField(db_index=True, default=True, verbose_name='是否正常')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='thirdparty.inkjetbatch', verbose_name='喷码BATCH')),
            ],
            options={
                'verbose_name': '喷码机数据上传明细',
                'verbose_name_plural': '喷码机数据上传明细',
            },
        ),
    ]
