# Generated by Django 3.1.4 on 2021-01-12 15:04

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0109_auto_20210106_1940'),
    ]

    operations = [
        migrations.AddField(
            model_name='agentorderbatch',
            name='review_company',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='agentorder_review_company', to='company.company', verbose_name='审核公司'),
        ),
        migrations.CreateModel(
            name='AgentOrderReview',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='审核时间')),
                ('dt', models.DateField(auto_now_add=True, verbose_name='审核日期')),
                ('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.agentorderbatch', verbose_name='终端店订单Batch')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='审核公司')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='下单人')),
            ],
            options={
                'verbose_name': '终端店订单审核',
                'verbose_name_plural': '终端店订单审核',
            },
        ),
    ]
