# Generated by Django 2.1.7 on 2020-06-25 15:03

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


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0009_consumerredeem'),
    ]

    operations = [
        migrations.AddField(
            model_name='activities',
            name='background',
            field=models.ImageField(blank=True, null=True, upload_to=sales.models.activity_img_upload, verbose_name='背景图'),
        ),
        migrations.AddField(
            model_name='activities',
            name='template',
            field=models.SmallIntegerField(choices=[(1, '通用'), (2, '自定义')], default=1, verbose_name='中奖页面'),
        ),
        migrations.AddField(
            model_name='activityawards',
            name='alternative',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='activityawards_alternative', to='sales.Award', verbose_name='超限后替代品'),
        ),
        migrations.AlterField(
            model_name='activities',
            name='scheme',
            field=models.SmallIntegerField(choices=[(1, '物流'), (2, '奖池')], default=1, verbose_name='中奖方案'),
        ),
        migrations.AlterField(
            model_name='activities',
            name='target',
            field=models.SmallIntegerField(choices=[(1, '消费者扫码'), (2, '经销商层级')], default=1, verbose_name='活动对象'),
        ),
        migrations.AlterField(
            model_name='activityawards',
            name='rate',
            field=models.DecimalField(decimal_places=2, max_digits=6, verbose_name='中奖概率'),
        ),
    ]
