# Generated by Django 3.1.4 on 2021-01-21 15:43

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0120_auto_20210119_1501'),
    ]

    operations = [
        migrations.CreateModel(
            name='WxWallet',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('cellphone', models.CharField(max_length=20, verbose_name='手机号码')),
                ('realname', models.CharField(max_length=30, verbose_name='实名制收款人')),
                ('status', models.SmallIntegerField(choices=[(0, '申请'), (1, '内勤审核'), (2, '财务审核'), (10, '变更')], default=0, 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, to='company.company', verbose_name='公司名称')),
                ('wxopenid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.wxopenid', verbose_name='收款人wxopenid')),
            ],
            options={
                'verbose_name': '经销商微信钱包绑定',
                'verbose_name_plural': '经销商微信钱包绑定',
            },
        ),
        migrations.CreateModel(
            name='WxWalletReview',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('status', models.SmallIntegerField(choices=[(0, '申请'), (10, '变更')], verbose_name='状态')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='wxwalletreview_user', to=settings.AUTH_USER_MODEL, verbose_name='审核人')),
                ('wxwallet', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.wxwallet', verbose_name='经销商微信钱包')),
            ],
            options={
                'verbose_name': '微信钱包审核',
                'verbose_name_plural': '微信钱包审核',
            },
        ),
    ]
