# Generated by Django 3.1.4 on 2021-10-19 18:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0254_auto_20211014_1321'),
        ('product', '0027_auto_20211012_0751'),
        ('inventory', '0108_receipt'),
    ]

    operations = [
        migrations.AddField(
            model_name='stkclosingcurrent',
            name='dt0',
            field=models.DateField(blank=True, null=True, verbose_name='物流数据最早日期'),
        ),
        migrations.CreateModel(
            name='ProductBatcnNo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='企业ID')),
                ('label_pk_id', models.BigIntegerField(db_index=True, verbose_name='标签PKID')),
                ('batch_id', models.IntegerField(verbose_name='入库Batch_id')),
                ('batchno', models.CharField(max_length=50, verbose_name='批次号')),
                ('dt', models.DateField(db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='productbatchno_company', to='company.company', verbose_name='公司')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='productbatchno_product', to='product.product', verbose_name='产品')),
            ],
            options={
                'verbose_name': '产品入库批次明细',
                'verbose_name_plural': '产品入库批次明细',
            },
        ),
    ]
