# Generated by Django 3.1.4 on 2021-02-04 13:41

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0143_company_wallet_bound'),
    ]

    operations = [
        migrations.CreateModel(
            name='BankInfoApplication',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('company_id', models.IntegerField(db_index=True, verbose_name='经销商ID')),
                ('app_wxopenid_id', models.IntegerField(verbose_name='申请人微信openid_id')),
                ('app_nickname', models.CharField(db_index=True, max_length=100, verbose_name='申请人微信昵称')),
                ('app_headimgurl', models.CharField(max_length=400, 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='收款行帐号')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('dt', models.DateField(auto_now_add=True, verbose_name='日期')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注')),
                ('app_company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bankinfoapplicaiton_company', to='company.company', verbose_name='申请经销商')),
                ('app_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bankinfoapplication_user', to=settings.AUTH_USER_MODEL, verbose_name='申请人')),
                ('bankinfo', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bankinfo', 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': '银行卡绑定申请',
            },
        ),
    ]
