# Generated by Django 2.1.7 on 2020-10-04 11:39

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


class Migration(migrations.Migration):

    dependencies = [
        ('promotion', '0017_requisitionstatuslog'),
    ]

    operations = [
        migrations.CreateModel(
            name='RequisitionLogMaterial',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('qty', models.IntegerField(verbose_name='数量')),
                ('remark', models.CharField(blank=True, max_length=50, 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='时间')),
                ('material', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='promotion.Material', verbose_name='物料名称')),
                ('requisitionlog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='promotion.RequisitionStatusLog', verbose_name='领用状态日志')),
            ],
            options={
                'verbose_name': '领用日志物料明细',
                'verbose_name_plural': '领用日志物料明细',
            },
        ),
        migrations.CreateModel(
            name='RequisitionLogProduct',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(max_length=20, verbose_name='标签号码')),
                ('package_id', models.SmallIntegerField(blank=True, null=True, verbose_name='标签类型')),
                ('label_id', models.BigIntegerField(blank=True, null=True, verbose_name='标签ID')),
                ('label_pk_id', models.BigIntegerField(blank=True, null=True, verbose_name='主标签ID')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('requisitionlog', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='promotion.RequisitionStatusLog', verbose_name='领用状态日志')),
            ],
            options={
                'verbose_name': '领用日志产品明细',
                'verbose_name_plural': '领用日志产品明细',
            },
        ),
    ]
