# Generated by Django 3.1.4 on 2021-06-23 17:10

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0015_auto_20210428_1433'),
        ('company', '0213_auto_20210621_1419'),
        ('sales', '0198_auto_20210623_0912'),
    ]

    operations = [
        migrations.AlterField(
            model_name='channelpromotions',
            name='terminal_qualified',
            field=models.BooleanField(blank=True, default=True, null=True, verbose_name='物流必经终端扫码入库'),
        ),
        migrations.CreateModel(
            name='ActivityRebate_ProductAward',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='remark')),
                ('activity', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='ProductAward_activity', to='sales.activities', verbose_name='返利活动')),
                ('award', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='ProductAward_award', to='sales.award', verbose_name='奖品')),
                ('company_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ProductAward_company', to='company.company', verbose_name='公司')),
                ('product', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='ProductAward_product', to='product.product', verbose_name='产品')),
            ],
            options={
                'verbose_name': '活动的产品奖项对照表',
                'verbose_name_plural': '活动的产品奖项对照表',
            },
        ),
        migrations.CreateModel(
            name='ActivityRebate_LabelPrize',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('labelcode', models.CharField(blank=True, max_length=100, null=True, verbose_name='labelcode')),
                ('activity', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='LabelPrize_activity', to='sales.activities', verbose_name='返利活动')),
                ('activity_award', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sales.activityawards', verbose_name='奖项')),
                ('company_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='LabelPrize_company', to='company.company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '活动的标签布奖表',
                'verbose_name_plural': '活动的标签布奖表',
            },
        ),
    ]
