# Generated by Django 3.1.4 on 2021-01-31 18:22

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0138_user_brand_ids'),
        ('sales', '0147_auto_20210130_1751'),
    ]

    operations = [
        migrations.CreateModel(
            name='ActivityRebate_RedPackSendRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('openid', models.CharField(max_length=100, verbose_name='openid')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='remark')),
                ('return_code', models.CharField(blank=True, max_length=100, null=True, verbose_name='return_code')),
                ('result_code', models.CharField(blank=True, max_length=100, null=True, verbose_name='result_code')),
                ('activity', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, related_name='RedPackSendRecord_activity', to='sales.activities', verbose_name='返利活动')),
                ('bonus_record', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='redpacksendrecord_bonus_record', to='sales.activityrebate_bonusrecord', verbose_name='返利记录')),
                ('company_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='RedPackSendRecord_company', to='company.company', verbose_name='公司')),
                ('consumer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='RedPackSendRecord_consumer', to='sales.consumeraccount', verbose_name='用户')),
            ],
            options={
                'verbose_name': '红包发放记录',
                'verbose_name_plural': '红包发放记录',
            },
        ),
    ]
