# Generated by Django 3.1.4 on 2023-01-13 11:20

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0320_pointslogdetails_product_id'),
        ('sales', '0309_auto_20221222_1531'),
    ]

    operations = [
        migrations.CreateModel(
            name='AwardcatLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True, verbose_name='折合现金')),
                ('remark', models.CharField(blank=True, max_length=30, null=True, verbose_name='备注')),
                ('dt', models.DateField(auto_now_add=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('ancestor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='awardcatlog_ancestor', to='company.company', 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.CASCADE, related_name='awardcatlog_consumer', to='sales.consumeraccount', verbose_name='消费者帐号')),
            ],
            options={
                'verbose_name': '红包领取记录',
                'verbose_name_plural': '红包领取记录',
            },
        ),
    ]
