# Generated by Django 3.1.4 on 2021-07-20 14:43

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0230_companycfg_wx_transfer_amt'),
        ('sales', '0229_auto_20210720_0736'),
    ]

    operations = [
        migrations.CreateModel(
            name='ActivityRebate_Anniversary',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('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='是否已兑付')),
                ('reason', models.CharField(blank=True, max_length=100, null=True, verbose_name='返利原因')),
                ('name', models.CharField(blank=True, max_length=100, null=True, verbose_name='收货人')),
                ('address', models.CharField(blank=True, max_length=100, null=True, verbose_name='收货地址')),
                ('phone', models.CharField(blank=True, max_length=100, null=True, 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', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司')),
                ('winner', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sales.consumerwinner', verbose_name='关联客户中奖记录')),
            ],
            options={
                'verbose_name': '求真逢整返利记录表',
                'verbose_name_plural': '求真逢整返利记录表',
            },
        ),
    ]
