# Generated by Django 2.1.7 on 2020-06-25 08:53

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('sales', '0008_auto_20200625_0851'),
    ]

    operations = [
        migrations.CreateModel(
            name='ConsumerRedeem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('checked_tm', models.DateTimeField(blank=True, null=True, verbose_name='审核时间')),
                ('waybill_number', models.CharField(blank=True, max_length=30, null=True, verbose_name='快递单号')),
                ('ref_code', models.CharField(blank=True, max_length=30, null=True, verbose_name='外部关联单号')),
                ('tm_send', models.DateTimeField(blank=True, 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='兑奖时间')),
                ('tm_received', models.DateTimeField(blank=True, null=True, verbose_name='收货时间')),
                ('is_closed', models.BooleanField(default=False, verbose_name='是否已完结')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('checked_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='consumerredeem_user', to=settings.AUTH_USER_MODEL, verbose_name='审核人')),
                ('expressagency', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='consumerredeem_expressagency', to='sales.ExpressAgency', verbose_name='快递代理公司')),
                ('winner', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='consumerredeem_awardwinner', to='sales.ConsumerWinner', verbose_name='中奖记录')),
            ],
            options={
                'verbose_name': '兑奖记录',
                'verbose_name_plural': '兑奖记录',
            },
        ),
    ]
