# Generated by Django 3.1.4 on 2021-07-02 15:33

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0016_product_external_series'),
        ('company', '0215_company_external_category'),
        ('sales', '0207_auto_20210701_1504'),
    ]

    operations = [
        migrations.AddField(
            model_name='activityrebate_bonusrecord',
            name='product',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品'),
        ),
        migrations.CreateModel(
            name='ActivityRebate_ShareRedPack',
            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')),
                ('tm', models.DateTimeField(auto_now_add=True, null=True, verbose_name='创建时间')),
                ('amount', models.DecimalField(decimal_places=2, max_digits=8, verbose_name='金额')),
                ('is_redeemed', models.BooleanField(default=False, verbose_name='是否已兑换')),
                ('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, to='sales.activities', verbose_name='返利活动')),
                ('company_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司')),
                ('product', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品')),
            ],
            options={
                'verbose_name': '求真的分享红包表',
                'verbose_name_plural': '求真的分享红包表',
            },
        ),
    ]
