# Generated by Django 3.1.4 on 2022-08-24 12:23

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0171_auto_20220824_1054'),
    ]

    operations = [
        migrations.CreateModel(
            name='StockCount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_id', models.IntegerField(db_index=True, verbose_name='公司ID')),
                ('closingperiond', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='期结会计期')),
                ('product_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='产品ID')),
                ('batch_number', models.CharField(blank=True, max_length=32, null=True, verbose_name='批次号')),
                ('label_code', models.CharField(max_length=32, 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')),
                ('label_pkg', models.SmallIntegerField(blank=True, null=True, verbose_name='标签类型')),
                ('remark', models.CharField(blank=True, max_length=64, 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='生成时间')),
            ],
            options={
                'verbose_name': '库存盘点表',
                'verbose_name_plural': '库存盘点表h',
                'unique_together': {('company_id', 'label_code')},
            },
        ),
    ]
