# Generated by Django 3.1.4 on 2021-02-04 11:49

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0141_auto_20210202_1932'),
    ]

    operations = [
        migrations.AddField(
            model_name='company',
            name='rebate_payment',
            field=models.SmallIntegerField(choices=[(1, '微信支付平台'), (2, '银行卡')], default=1, verbose_name='返利支付方式'),
        ),
        migrations.AlterField(
            model_name='wxwallet',
            name='realname',
            field=models.CharField(max_length=30, verbose_name='微信实名制收款人'),
        ),
        migrations.CreateModel(
            name='DeliveryAddress',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('address', models.CharField(blank=True, max_length=100, null=True, verbose_name='收货地址')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='deliveryaddress_company', to='company.company', verbose_name='经销商')),
            ],
            options={
                'verbose_name': '经销商货返收货地址',
                'verbose_name_plural': '经销商货返收货地址',
            },
        ),
        migrations.CreateModel(
            name='BankInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('bank_name', models.CharField(blank=True, max_length=50, null=True, verbose_name='收款行名称')),
                ('bank_account', models.CharField(blank=True, max_length=50, null=True, verbose_name='收款行帐号')),
                ('payee', models.CharField(blank=True, max_length=50, null=True, verbose_name='收款人')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='bankinfo_company', to='company.company', verbose_name='经销商')),
                ('status', models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.SET_NULL, to='company.wxwalletstatus', verbose_name='当前状态')),
            ],
            options={
                'verbose_name': '经销商银行卡绑定',
                'verbose_name_plural': '经销商银行卡绑定',
            },
        ),
    ]
