# Generated by Django 2.1.7 on 2020-09-28 13:19

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),
        ('company', '0063_company_lng_lat'),
        ('promotion', '0008_auto_20200928_1017'),
    ]

    operations = [
        migrations.CreateModel(
            name='PrjStatusBatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.Company', verbose_name='公司名称')),
                ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='promotion.Project', verbose_name='促销方案')),
                ('status', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='promotion.PrjStatus', verbose_name='核销状态')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='操作人')),
            ],
            options={
                'verbose_name': '礼品酒扫码状态BATCH',
                'verbose_name_plural': '礼品酒扫码状态BATCH',
            },
        ),
        migrations.AddField(
            model_name='prjmaterialdetails',
            name='batch',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='promotion.PrjStatusBatch', verbose_name='礼品酒扫码状态BATCH'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='prjproductdetails',
            name='batch',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='promotion.PrjStatusBatch', verbose_name='礼品酒扫码状态BATCH'),
            preserve_default=False,
        ),
    ]
