# Generated by Django 3.1.4 on 2021-06-24 14:54

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0213_auto_20210621_1419'),
        ('wx', '0007_auto_20210624_1437'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='channelpromotionrebate',
            name='agent',
        ),
        migrations.AddField(
            model_name='channelpromotionrebate',
            name='ancestor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='channelpromotionrebate_company', to='company.company', verbose_name='公司'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='channelpromotionrebate',
            name='box_code',
            field=models.CharField(db_index=True, default='', max_length=20, verbose_name='箱标号码'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='channelpromotionrebate',
            name='level_id',
            field=models.SmallIntegerField(blank=True, db_index=True, null=True, verbose_name='营销层级ID'),
        ),
        migrations.AddField(
            model_name='channelpromotionrebate',
            name='saldivision_id',
            field=models.IntegerField(blank=True, db_index=True, null=True, verbose_name='战区ID'),
        ),
        migrations.AddField(
            model_name='channelpromotionrebate',
            name='vtype_id',
            field=models.SmallIntegerField(blank=True, db_index=True, null=True, verbose_name='单据类型'),
        ),
        migrations.AlterField(
            model_name='channelpromotionrebate',
            name='company',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='返利经销商'),
        ),
    ]
