# Generated by Django 3.1.4 on 2021-07-19 10:26

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),
        ('sales', '0221_auto_20210719_0902'),
    ]

    operations = [
        migrations.RenameField(
            model_name='rebatepayment',
            old_name='operator_id',
            new_name='user_id',
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='agent_id',
            field=models.IntegerField(db_index=True, default=1, verbose_name='经销商ID'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='agent_name',
            field=models.CharField(blank=True, max_length=100, null=True, verbose_name='经销商名称'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='amount_total',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True, verbose_name='金额合计'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='amount_vat',
            field=models.DecimalField(blank=True, decimal_places=2, max_digits=11, null=True, verbose_name='税费'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='invoice_needed',
            field=models.SmallIntegerField(choices=[(1, '开票提现'), (0, '不开票提现')], default=1, verbose_name='提现方式'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='level_id',
            field=models.SmallIntegerField(blank=True, null=True, verbose_name='经销商层级'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='operator',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='rebatepayment_user', to='company.user', verbose_name='操作人'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='parent_name',
            field=models.CharField(blank=True, max_length=100, null=True, verbose_name='父级名称'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='payment_method',
            field=models.SmallIntegerField(choices=[(1, '微信钱包'), (2, '银行卡'), (3, '货返')], default=1, verbose_name='付款方式'),
        ),
        migrations.AddField(
            model_name='rebatepayment',
            name='rate_vat',
            field=models.SmallIntegerField(blank=True, null=True, verbose_name='税率'),
        ),
        migrations.AlterField(
            model_name='rebatepayment',
            name='amount',
            field=models.DecimalField(decimal_places=2, default=0, max_digits=12, verbose_name='付款金额'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='rebatepayment',
            name='rebatepaylog_id',
            field=models.IntegerField(blank=True, null=True, verbose_name='平台支付日在志'),
        ),
    ]
