# Generated by Django 3.1.4 on 2021-01-19 15:01

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0013_product_brand'),
        ('company', '0119_auto_20210118_1525'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='sale_task_allocate',
            name='product_ids',
        ),
        migrations.CreateModel(
            name='Sale_Task_Allocate_Products',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('num', models.IntegerField(blank=True, null=True, verbose_name='产品数量')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='company.company', verbose_name='公司')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品')),
                ('sale_task_allocate', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.sale_task_allocate', verbose_name='任务分配')),
            ],
            options={
                'verbose_name': '销售任务分配产品',
                'verbose_name_plural': '销售任务分配产品',
            },
        ),
    ]
