# Generated by Django 3.1.4 on 2022-11-29 10:40

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


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('sales', '0298_lotteryseeds_batch_id'),
    ]

    operations = [
        migrations.AddField(
            model_name='channelpromotions',
            name='points_ratio',
            field=models.DecimalField(blank=True, decimal_places=4, max_digits=8, null=True, verbose_name='积分现金兑换比率'),
        ),
        migrations.AddField(
            model_name='channelpromotions',
            name='trigger_action',
            field=models.CharField(blank=True, default='post_save', max_length=50, null=True, verbose_name='触发动作'),
        ),
        migrations.AddField(
            model_name='channelpromotions',
            name='triggers',
            field=models.JSONField(blank=True, default=list, null=True, verbose_name='系统触发对像类'),
        ),
        migrations.CreateModel(
            name='ChannelPromotionTrigger',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('remark', models.CharField(blank=True, max_length=100, verbose_name='备注说明')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='生成时间')),
                ('contenttype', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ChannelPromotionTrigger_contenttype', to='contenttypes.contenttype', verbose_name='对像/表名')),
            ],
            options={
                'verbose_name': '可触发渠道促销活动的对像类',
                'verbose_name_plural': '可触发渠道促销活动的对像类',
            },
        ),
    ]
