# Generated by Django 3.1.4 on 2021-02-19 15:14

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0156_delete_bankinfo'),
    ]

    operations = [
        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(max_length=50, verbose_name='收款行名称')),
                ('bank_account', models.CharField(max_length=50, verbose_name='收款行帐号')),
                ('payee', models.CharField(max_length=50, verbose_name='收款人')),
                ('is_default', models.BooleanField(default=False, verbose_name='默认账号')),
                ('tm', models.DateTimeField(auto_now=True, verbose_name='时间')),
                ('application', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.bankinfoapplication', verbose_name='银行卡绑定申请')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bankinfors_company', to='company.company', verbose_name='经销商')),
            ],
            options={
                'verbose_name': '银行卡信息',
                'verbose_name_plural': '银行卡信息',
            },
        ),
        migrations.DeleteModel(
            name='BankInfors',
        ),
    ]
