# Generated by Django 2.1.7 on 2019-11-12 18:36

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


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0002_auto_20191110_1603'),
    ]

    operations = [
        migrations.CreateModel(
            name='delivery_details',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_id', models.BigIntegerField(verbose_name='标签ID')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
            ],
            options={
                'verbose_name': '旧物流发货明细',
                'verbose_name_plural': '旧物流发货明细',
            },
        ),
        migrations.CreateModel(
            name='delivery_summary',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('stid', models.IntegerField(blank=True, null=True, verbose_name='仓库ID')),
                ('fhuserid', models.IntegerField(blank=True, null=True, verbose_name='用户ID')),
                ('compid', models.IntegerField(blank=True, null=True, verbose_name='公司ID')),
                ('agentid', models.IntegerField(blank=True, null=True, verbose_name='客户ID')),
                ('proid', models.IntegerField(blank=True, null=True, verbose_name='产品ID')),
                ('voucher_id', models.SmallIntegerField(blank=True, null=True, verbose_name='单据ID')),
                ('xiangnumber', models.IntegerField(blank=True, null=True, verbose_name='箱数')),
                ('fhpici', models.CharField(blank=True, max_length=100, null=True, verbose_name='批次')),
                ('fhkey', models.CharField(blank=True, max_length=50, null=True, verbose_name='发货Key')),
                ('gpsinfo', models.CharField(blank=True, max_length=50, null=True, verbose_name='GPS')),
                ('khddh', models.CharField(blank=True, max_length=50, null=True, verbose_name='订单号')),
                ('beizhu', models.CharField(blank=True, max_length=50, null=True, verbose_name='说明')),
                ('sclocal', models.CharField(blank=True, max_length=50, null=True, verbose_name='收货地点')),
                ('scteam', models.CharField(blank=True, max_length=50, null=True, verbose_name='收货地点')),
                ('fhdate', models.DateTimeField(default=django.utils.timezone.now, verbose_name='发货时间')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='说明')),
            ],
            options={
                'verbose_name': '旧物流发货汇总',
                'verbose_name_plural': '旧物流发货汇总',
            },
        ),
        migrations.AddField(
            model_name='delivery_details',
            name='summary',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='inventory.delivery_summary', verbose_name='旧物流发货汇'),
        ),
    ]
