# Generated by Django 3.1.4 on 2021-01-04 19:25

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0107_auto_20201230_0952'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('sales', '0122_channelrebatedetails_deduction_batch_id'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='rebatepaid',
            options={'verbose_name': '会计期返利付款明细', 'verbose_name_plural': '会计期返利付款明细'},
        ),
        migrations.RemoveField(
            model_name='rebateapplication',
            name='payee',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='agent',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='agent_name',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='bank_receipt',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='company_id',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='level_id',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='parent_name',
        ),
        migrations.RemoveField(
            model_name='rebatepaid',
            name='tm_chceked',
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='wx_headimgurl',
            field=models.CharField(default='', max_length=400, verbose_name='微信头像'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='wx_nickname',
            field=models.CharField(db_index=True, default='', max_length=100, verbose_name='微信昵称'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebateapplication',
            name='wxopenid',
            field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to='company.wxopenid', verbose_name='收款人wxopenid'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='application',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sales.rebateapplication', verbose_name='经销商提现申请'),
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='operator',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='rebatepaid_user', to='company.user', verbose_name='操作人'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='payment_no',
            field=models.CharField(blank=True, max_length=40, null=True, verbose_name='微信付款单号'),
        ),
        migrations.AddField(
            model_name='rebatepaid',
            name='result',
            field=models.JSONField(blank=True, null=True, verbose_name='微信支付返回结果'),
        ),
        migrations.AlterField(
            model_name='rebatepaid',
            name='amount',
            field=models.DecimalField(decimal_places=2, max_digits=12, verbose_name='付款金额'),
        ),
    ]
