# Generated by Django 3.1.4 on 2021-07-17 11:16

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0229_franchisestatus_color'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('sales', '0215_auto_20210717_0949'),
    ]

    operations = [
        migrations.CreateModel(
            name='KangNian_InventoryManipulation',
            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='操作时间')),
                ('reason', models.CharField(blank=True, max_length=100, null=True, verbose_name='操作说明')),
                ('amount', models.IntegerField(blank=True, null=True, verbose_name='数量')),
                ('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='操作人')),
            ],
            options={
                'verbose_name': '康年皇冠库存管理',
                'verbose_name_plural': '康年皇冠库存管理',
            },
        ),
        migrations.CreateModel(
            name='ActivityRebate_BrandRecommenderBonus',
            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='是否已兑付')),
                ('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='返利活动')),
                ('brandrecommender', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='company.brandrecommender', verbose_name='品牌推荐官')),
                ('company_id', 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': '品牌推荐官返利统计表',
            },
        ),
    ]
