# Generated by Django 3.1.4 on 2023-07-19 16:17

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0327_terminalregister_parent_user'),
        ('sales', '0340_lotteryseeds_is_terminal_rebate'),
    ]

    operations = [
        migrations.AddField(
            model_name='activityawards',
            name='help_num',
            field=models.IntegerField(default=0, verbose_name='助力次数'),
            preserve_default=False,
        ),
        migrations.CreateModel(
            name='ConsumerHelp',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('award_name', models.CharField(blank=True, max_length=200, null=True, verbose_name='奖品名称')),
                ('label_code', models.CharField(blank=True, db_index=True, max_length=20, null=True, verbose_name='标签号码')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('activity', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sales.activities', verbose_name='活动名称')),
                ('award', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sales.activityawards', verbose_name='奖品')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='公司名称')),
                ('consumer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sales.consumeraccount', verbose_name='消费者帐号')),
            ],
            options={
                'verbose_name': '消费者助力记录',
                'verbose_name_plural': '消费者助力记录',
            },
        ),
    ]
