# Generated by Django 3.1.4 on 2021-01-08 11:22

from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0131_auto_20210108_0904'),
    ]

    operations = [
        migrations.CreateModel(
            name='RebatePaylog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('company_id', models.IntegerField(db_index=True, verbose_name='企业ID')),
                ('application', models.IntegerField(db_index=True, verbose_name='经销商提现申请')),
                ('operator_id', models.IntegerField(verbose_name='操作人')),
                ('dt', models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='日期')),
                ('tm', models.DateTimeField(default=django.utils.timezone.now, verbose_name='时间')),
                ('msg', models.JSONField(verbose_name='微信平台返回信息')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
            ],
            options={
                'verbose_name': '会计期返利微信支付日志',
                'verbose_name_plural': '会计期返利微信支付日志',
            },
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='result',
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='agent_id',
            field=models.IntegerField(db_index=True, default=1, verbose_name='经销商ID'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='company_id',
            field=models.IntegerField(db_index=True, default=1, verbose_name='企业ID'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='rebateapplication',
            name='status',
            field=models.SmallIntegerField(choices=[(0, '待上传发票'), (1, '待审核'), (2, '待放款'), (4, '被驳回'), (10, '已作废'), (100, '已放款')], db_index=True, default=0, verbose_name='当前状态'),
        ),
    ]
