# Generated by Django 2.1.7 on 2020-05-26 18:10

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0004_auto_20200511_1642'),
        ('company', '0035_auto_20200526_1809'),
    ]

    operations = [
        migrations.CreateModel(
            name='AgentOrderDetails',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='族系')),
                ('qty', models.IntegerField(verbose_name='数量')),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.AgentOrderBatch', verbose_name='终端店订单Batch')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='agentlorder_detail_company', to='company.Company', verbose_name='公司')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='agentorder_detail_product', to='product.Product', verbose_name='产品名称')),
                ('vendor', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='agentorder_detail_receiver', to='company.Company', verbose_name='接单公司')),
            ],
            options={
                'verbose_name': '终端店订单detail',
                'verbose_name_plural': '终端店订单detail',
            },
        ),
    ]
