# Generated by Django 3.1.4 on 2021-06-23 16:35

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


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0198_auto_20210623_0912'),
        ('company', '0213_auto_20210621_1419'),
        ('wx', '0004_auto_20210525_1918'),
    ]

    operations = [
        migrations.CreateModel(
            name='ChannelPromotionRebate',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label_code', models.CharField(db_index=True, max_length=20, verbose_name='标签号码')),
                ('level_sn', models.SmallIntegerField(db_index=True, verbose_name='营销层级')),
                ('val', models.DecimalField(decimal_places=2, max_digits=12, verbose_name='返利金额（点值）')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('agent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='经销商')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='channelpromotionrebate_company', to='company.company', verbose_name='公司')),
                ('labelscan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sales.labelscan', verbose_name='消费者扫码记录')),
                ('promotion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sales.channelpromotions', verbose_name='渠道促销活动')),
            ],
            options={
                'verbose_name': '消费者扫码层级返利',
                'verbose_name_plural': '消费者扫码层级返利',
            },
        ),
    ]
