# Generated by Django 3.1.4 on 2022-09-15 14:18

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0303_terminalregister_tm_rejected'),
        ('inventory', '0175_auto_20220901_1451'),
    ]

    operations = [
        migrations.CreateModel(
            name='StackLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('batch_id', models.IntegerField(blank=True, null=True, verbose_name='物流单据')),
                ('stack_id', models.IntegerField(blank=True, null=True, verbose_name='垛位id')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
                ('label_pk_id', models.BigIntegerField(blank=True, db_index=True, null=True, verbose_name='主箱标ID')),
                ('label_id', models.BigIntegerField(blank=True, null=True, verbose_name='箱标ID')),
                ('package_id', models.SmallIntegerField(blank=True, 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=100, null=True, verbose_name='备注')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stack_log', to='company.company', verbose_name='企业名称')),
            ],
            options={
                'verbose_name': '垛盘数据变更',
                'verbose_name_plural': '垛盘数据变更',
            },
        ),
    ]
