# Generated by Django 3.1.4 on 2021-01-08 09:04

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('sales', '0130_rebateapplication_code'),
    ]

    operations = [
        migrations.RenameField(
            model_name='rebateclosing',
            old_name='tm_payable_checked',
            new_name='payable_checked_tm',
        ),
        migrations.RenameField(
            model_name='rebateclosing',
            old_name='payable_checker',
            new_name='payable_checked_user',
        ),
        migrations.RemoveField(
            model_name='rebateclosing',
            name='is_closed',
        ),
        migrations.RemoveField(
            model_name='rebateclosing',
            name='paid_checker',
        ),
        migrations.RemoveField(
            model_name='rebateclosing',
            name='tm_paid_checked',
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='application_amount',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True, verbose_name='提现申请金额'),
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='application_checked_tm',
            field=models.DateTimeField(blank=True, null=True, verbose_name='提现申请审核时间'),
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='application_checked_user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='rebateclosing_checkerapplication', to=settings.AUTH_USER_MODEL, verbose_name='提现申请审核人'),
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='application_counting',
            field=models.IntegerField(blank=True, null=True, verbose_name='提现申请笔数'),
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='closed_tm',
            field=models.DateTimeField(blank=True, null=True, verbose_name='关闭时间'),
        ),
        migrations.AddField(
            model_name='rebateclosing',
            name='closed_user',
            field=models.IntegerField(blank=True, null=True, verbose_name='关闭操作人'),
        ),
        migrations.AlterField(
            model_name='rebateclosing',
            name='dt',
            field=models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='创建日期'),
        ),
        migrations.AlterField(
            model_name='rebateclosing',
            name='tm',
            field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='创建时间'),
        ),
    ]
