# Generated by Django 3.1.4 on 2022-07-14 10:54

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0300_user_roles'),
        ('sales', '0290_auto_20220707_2152'),
    ]

    operations = [
        migrations.AddField(
            model_name='award',
            name='hexiao_level_id',
            field=models.SmallIntegerField(blank=True, choices=[(1, '公司'), (2, '一级'), (4, '二级')], null=True, verbose_name='核销层级'),
        ),
        migrations.CreateModel(
            name='LotteryWinnerSeeds',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('phone', models.CharField(max_length=20, verbose_name='指定手机号')),
                ('is_lock', models.BooleanField(default=False, verbose_name='是否锁住')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('activity', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lotterywinnerseeds_activity', to='sales.activities', verbose_name='活动名称')),
                ('award', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lotterywinnerseeds_award', to='sales.activityawards', verbose_name='奖品名称')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lotterywinnerseeds_company', to='company.company', verbose_name='公司名称')),
            ],
            options={
                'verbose_name': '预定中奖人列表',
                'verbose_name_plural': '预定中奖人列表',
            },
        ),
    ]
