# Generated by Django 4.2.27 on 2026-06-19 18:42

import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import gvsdsdk.models
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='UserMain',
            fields=[
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='主键ID')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, unique=True, verbose_name='用户ID')),
                ('openid', models.CharField(db_index=True, max_length=64, unique=True, verbose_name='微信OpenID')),
                ('unionid', models.CharField(blank=True, db_index=True, max_length=64, null=True, verbose_name='微信UnionID')),
                ('avatar', models.CharField(blank=True, default='a_long/morentouxiang.jpg', max_length=500, null=True, verbose_name='头像')),
                ('phone', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号')),
                ('shoujihao_renzheng', models.BooleanField(default=False, verbose_name='手机号是否已认证')),
                ('password', models.CharField(blank=True, max_length=200, null=True, verbose_name='密码')),
                ('zhifu', models.CharField(blank=True, max_length=500, null=True, verbose_name='收款码图片')),
                ('skzhanghao', models.CharField(blank=True, max_length=11, null=True, verbose_name='收款账号')),
                ('ip', models.CharField(blank=True, max_length=50, null=True, verbose_name='来访用户ip')),
                ('last_login_time', models.DateTimeField(blank=True, null=True, verbose_name='最后登录时间')),
                ('user_type', models.CharField(choices=[('normal', '普通用户'), ('dashou', '打手'), ('shop', '商家'), ('guanshi', '管事'), ('admin', '管理员')], default='normal', max_length=10, verbose_name='用户类型')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '用户主表',
                'verbose_name_plural': '用户主表',
                'db_table': 'user_main',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('UserUUID', gvsdsdk.models.UUIDField(binary_length=16, db_column='UserUUID', default=uuid.uuid4, primary_key=True, serialize=False, verbose_name='用户UUID')),
                ('UserName', models.CharField(db_column='UserName', max_length=256, unique=True, verbose_name='用户名')),
                ('UserPassword', models.CharField(db_column='UserPassword', default='', max_length=60, verbose_name='密码')),
                ('UserPositionStatus', models.SmallIntegerField(db_column='UserPositionStatus', default=0, verbose_name='职位状态')),
                ('UserPersonalSignature', models.CharField(db_column='UserPersonalSignature', default='', max_length=1024, verbose_name='个人签名')),
                ('UserEmail', models.CharField(db_column='UserEmail', default='', max_length=256, verbose_name='邮箱')),
                ('UserEmailVerify', models.SmallIntegerField(db_column='UserEmailVerify', default=0, verbose_name='邮箱验证')),
                ('UserAccountLicense', models.SmallIntegerField(db_column='UserAccountLicense', default=1, verbose_name='账户许可')),
                ('UserGender', models.SmallIntegerField(db_column='UserGender', default=-1, verbose_name='性别')),
                ('UserTele', models.CharField(blank=True, db_column='UserTele', max_length=16, null=True, verbose_name='电话')),
                ('UserCreateTime', models.DateTimeField(db_column='UserCreateTime', default=datetime.datetime.utcnow, verbose_name='创建时间')),
                ('UserLastLoginDate', models.DateTimeField(db_column='UserLastLoginDate', default=datetime.datetime.utcnow, verbose_name='最后登录')),
                ('UserUID', models.CharField(blank=True, db_column='UserUID', max_length=7, null=True, unique=True, verbose_name='用户业务ID')),
                ('OpenID', models.CharField(blank=True, db_column='OpenID', max_length=64, null=True, unique=True, verbose_name='微信OpenID')),
                ('UnionID', models.CharField(blank=True, db_column='UnionID', max_length=64, null=True, verbose_name='微信UnionID')),
                ('Avatar', models.CharField(db_column='Avatar', default='a_long/morentouxiang.jpg', max_length=500, verbose_name='头像')),
                ('Phone', models.CharField(blank=True, db_column='Phone', max_length=11, null=True, verbose_name='手机号')),
                ('PhoneVerified', models.BooleanField(db_column='PhoneVerified', default=False, verbose_name='手机号是否已认证')),
                ('IP', models.CharField(blank=True, db_column='IP', max_length=50, null=True, verbose_name='来访用户IP')),
                ('IsStaff', models.BooleanField(db_column='IsStaff', default=False, verbose_name='是否员工')),
                ('IsSuperuser', models.BooleanField(db_column='IsSuperuser', default=False, verbose_name='是否超级用户')),
            ],
            options={
                'verbose_name': '用户',
                'verbose_name_plural': '用户',
                'db_table': 'User',
                'managed': True,
            },
        ),
        migrations.CreateModel(
            name='OfficialAccountUser',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('unionid', models.CharField(db_index=True, max_length=64, null=True, verbose_name='UnionID')),
                ('official_openid', models.CharField(db_index=True, max_length=64, unique=True, verbose_name='服务号OpenID')),
                ('subscribe_time', models.DateTimeField(auto_now_add=True, verbose_name='关注时间')),
                ('is_subscribed', models.BooleanField(default=True, verbose_name='是否关注')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '服务号用户',
                'verbose_name_plural': '服务号用户',
                'db_table': 'official_account_user',
            },
        ),
        migrations.CreateModel(
            name='Xiugaijilu',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='记录ID')),
                ('yonghuid', models.CharField(max_length=7, verbose_name='被修改用户ID')),
                ('xiugaiid', models.CharField(max_length=30, verbose_name='修改人账号ID')),
                ('leixing', models.IntegerField(verbose_name='被修改用户类型')),
                ('xiugaitijiao', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改后的打手提现金额')),
                ('xiugaitijiaoq', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改前的打手提现金额')),
                ('jifen', models.IntegerField(default=0, verbose_name='修改后的打手积分')),
                ('yjifen', models.IntegerField(default=0, verbose_name='修改前的打手积分')),
                ('yajin', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改后的打手押金')),
                ('yyajin', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改前的打手押金')),
                ('shangjiayue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改后的商家余额')),
                ('shangjiayueq', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改前的商家余额')),
                ('guanshiyue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改后的管事余额')),
                ('guanshiyueq', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='修改前的管事余额')),
                ('huiyuants', models.IntegerField(default=0, verbose_name='添加会员天数')),
                ('huiyuan_id', models.CharField(blank=True, max_length=6, null=True, verbose_name='会员ID')),
                ('qitashuoming', models.TextField(blank=True, null=True, verbose_name='其他说明')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '修改记录表',
                'verbose_name_plural': '修改记录表',
                'db_table': 'xiugaijilu',
            },
        ),
        migrations.CreateModel(
            name='UserZuzhang',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('yaoqingma', models.CharField(db_index=True, max_length=20, null=True, verbose_name='组长邀请码')),
                ('fenyong_zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='分佣总额(元)')),
                ('ketixian_jine', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='可提现金额(元)')),
                ('yaoqing_zongshu', models.IntegerField(default=0, verbose_name='邀请总数')),
                ('jinri_fenyong', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今日分佣(元)')),
                ('jinyue_fenyong', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今月分佣(元)')),
                ('zhuangtai', models.IntegerField(choices=[(0, '禁用'), (1, '正常')], default=1, verbose_name='账号状态')),
                ('haibao_url', models.CharField(blank=True, max_length=500, null=True, verbose_name='推广海报相对URL')),
                ('jinri_tixian', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今日提现金额(元)')),
                ('last_tixian_time', models.DateTimeField(blank=True, null=True, verbose_name='最后提现时间')),
                ('ewai_tixian_xiane', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='额外提现限额(元)')),
                ('kaioi_ewai_tixian', models.BooleanField(default=False, verbose_name='开启额外提现')),
                ('kaioi_ewai_fenhong', models.BooleanField(default=False, verbose_name='开启额外分红')),
                ('ewai_fenhong_jine', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='额外分红金额(元)')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='ZuzhangProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '组长扩展表',
                'verbose_name_plural': '组长扩展表',
                'db_table': 'user_zuzhang',
            },
        ),
        migrations.CreateModel(
            name='UserShenheguan',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('zhuangtai', models.IntegerField(choices=[(0, '禁用'), (1, '正常')], default=1, verbose_name='账号状态')),
                ('shenhe_zhuangtai', models.IntegerField(choices=[(0, '空闲'), (1, '审核中')], default=0, verbose_name='审核官状态')),
                ('is_renzheng', models.BooleanField(default=False, verbose_name='是否认证')),
                ('shenhe_zongshu', models.IntegerField(default=0, verbose_name='审核总数')),
                ('tongguo_zongshu', models.IntegerField(default=0, verbose_name='通过总数')),
                ('yue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='可提现余额')),
                ('zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='赚取总额')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='ShenheguanProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '审核官扩展表',
                'verbose_name_plural': '审核官扩展表',
                'db_table': 'user_shenheguan',
            },
        ),
        migrations.CreateModel(
            name='UserShangjia',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nicheng', models.CharField(db_index=True, max_length=50, unique=True, verbose_name='商家昵称')),
                ('zhuangtai', models.IntegerField(choices=[(0, '待审核'), (1, '正常'), (2, '禁用')], default=1, verbose_name='商家状态')),
                ('dianhua', models.CharField(max_length=20, null=True, verbose_name='商家电话')),
                ('wechat', models.CharField(max_length=50, null=True, verbose_name='商家微信号')),
                ('fabu', models.IntegerField(default=0, verbose_name='发布订单总数量')),
                ('tuikuan', models.IntegerField(default=0, verbose_name='退款订单总量')),
                ('yue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='商家余额')),
                ('chengjiao', models.IntegerField(default=0, verbose_name='商家成交订单总量')),
                ('jinridingdan', models.IntegerField(default=0, verbose_name='商家今日订单总量')),
                ('jinriliushui', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='商家今日流水')),
                ('jinyuedingdan', models.IntegerField(default=0, verbose_name='商家今月订单总量')),
                ('jinyueliushui', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='商家今月流水')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='ShopProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '商家扩展表',
                'verbose_name_plural': '商家扩展表',
                'db_table': 'user_shangjia',
            },
        ),
        migrations.CreateModel(
            name='UserSensitiveData',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(blank=True, max_length=200, null=True, verbose_name='密码')),
                ('zhifu', models.CharField(blank=True, max_length=500, null=True, verbose_name='收款码图片')),
                ('skzhanghao', models.CharField(blank=True, max_length=11, null=True, verbose_name='收款账号')),
                ('shoujihao_renzheng', models.BooleanField(default=False, verbose_name='手机号是否已认证')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user_uuid', models.OneToOneField(db_column='user_uuid_id', on_delete=django.db.models.deletion.CASCADE, related_name='sensitive_data', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '用户敏感数据',
                'verbose_name_plural': '用户敏感数据',
                'db_table': 'user_sensitive_data',
            },
        ),
        migrations.CreateModel(
            name='UserKefu',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nicheng', models.CharField(max_length=50, verbose_name='客服昵称')),
                ('erjimima', models.CharField(max_length=128, verbose_name='二级密码')),
                ('zhuangtai', models.IntegerField(choices=[(0, '禁用'), (1, '正常')], default=1, verbose_name='客服状态')),
                ('jinrichuli', models.IntegerField(default=0, verbose_name='今日处理订单数')),
                ('jinyuechuli', models.IntegerField(default=0, verbose_name='本月处理订单数')),
                ('zongchuli', models.IntegerField(default=0, verbose_name='累计处理订单数')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='KefuProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '客服扩展表',
                'verbose_name_plural': '客服扩展表',
                'db_table': 'user_kefu',
            },
        ),
        migrations.CreateModel(
            name='UserGuanshi',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('yaoqingren', models.CharField(db_index=True, max_length=7, null=True, verbose_name='邀请人ID')),
                ('yaoqingma', models.CharField(db_index=True, max_length=20, null=True, verbose_name='邀请码')),
                ('invite_qrcode_url', models.CharField(blank=True, max_length=500, null=True, verbose_name='邀请码二维码图片URL')),
                ('dianhua', models.CharField(max_length=20, null=True, verbose_name='管事电话')),
                ('wechat', models.CharField(max_length=50, null=True, verbose_name='管事微信号')),
                ('yaogingshuliang', models.IntegerField(default=0, verbose_name='邀请打手总数')),
                ('zhuangtai', models.IntegerField(choices=[(0, '禁用'), (1, '正常')], default=1, verbose_name='管事状态')),
                ('jinrichongzhi', models.IntegerField(default=0, verbose_name='今日充值打手数量')),
                ('jinyuechongzhi', models.IntegerField(default=0, verbose_name='今月充值打手数量')),
                ('chongzhifenrun', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='充值分佣总额')),
                ('yue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='可提现余额')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('fenhong_yici', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='首次分红金额')),
                ('fenghong_erci_enabled', models.BooleanField(default=False, verbose_name='开启二次分红')),
                ('fenghong_erci', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='二次分红金额')),
                ('last_tixian_date', models.DateField(blank=True, null=True, verbose_name='最近提现日期')),
                ('jinritixian_jine', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今日已提现金额')),
                ('kaioi_ewai_xiane', models.BooleanField(default=False, verbose_name='是否开启额外提现限额')),
                ('ewai_xiane', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='额外提现限额(元)')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='GuanshiProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '管事扩展表',
                'verbose_name_plural': '管事扩展表',
                'db_table': 'user_guanshi',
            },
        ),
        migrations.CreateModel(
            name='UserDashou',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nicheng', models.CharField(max_length=50, null=True, verbose_name='打手昵称')),
                ('chenghao', models.CharField(max_length=50, null=True, verbose_name='打手称号')),
                ('zhuangtai', models.IntegerField(default=1, verbose_name='打手状态')),
                ('zaixianzhuangtai', models.IntegerField(default=1, verbose_name='打手在线状态')),
                ('zhanghaozhuangtai', models.IntegerField(default=1, verbose_name='打手账号状态')),
                ('jieshao', models.TextField(null=True, verbose_name='打手介绍')),
                ('jiedanzongliang', models.IntegerField(default=0, verbose_name='接单总量')),
                ('chengjiaozongliang', models.IntegerField(default=0, verbose_name='成交单总量')),
                ('tuikuanliang', models.IntegerField(default=0, verbose_name='退款订单总量')),
                ('yue', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='可提现余额')),
                ('zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='打单赚取总额')),
                ('dianhua', models.CharField(max_length=20, null=True, verbose_name='打手电话')),
                ('wechat', models.CharField(max_length=50, null=True, verbose_name='打手微信号')),
                ('yaoqingren', models.CharField(db_index=True, max_length=7, null=True, verbose_name='邀请人ID')),
                ('jinrijiedan', models.IntegerField(default=0, verbose_name='今日接单数量')),
                ('jinrishouyi', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今日收益金额')),
                ('jinyuejiedan', models.IntegerField(default=0, verbose_name='今月接单数量')),
                ('jinyueshouyi', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今月收益金额')),
                ('jifen', models.IntegerField(default=0, verbose_name='打手积分')),
                ('yajin', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='打手押金')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('last_tixian_date', models.DateField(blank=True, null=True, verbose_name='最近提现日期')),
                ('jinritixian_jine', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='今日已提现金额')),
                ('kaioi_ewai_xiane', models.BooleanField(default=False, verbose_name='是否开启额外提现限额')),
                ('ewai_xiane', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='额外提现限额(元)')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='DashouProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '打手扩展表',
                'verbose_name_plural': '打手扩展表',
                'db_table': 'user_dashou',
            },
        ),
        migrations.CreateModel(
            name='UserBoss',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nickname', models.CharField(max_length=50, verbose_name='老板昵称')),
                ('zonge', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='消费总额')),
                ('alldingdan', models.IntegerField(default=0, verbose_name='订单总数')),
                ('alltui', models.IntegerField(default=0, verbose_name='退款总数')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='BossProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '老板扩展表',
                'verbose_name_plural': '老板扩展表',
                'db_table': 'user_boss',
            },
        ),
        migrations.CreateModel(
            name='TixianShenheJilu',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('shenhe_danhao', models.CharField(db_index=True, max_length=32, unique=True, verbose_name='审核单号')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='用户ID')),
                ('leixing', models.PositiveSmallIntegerField(db_index=True, verbose_name='提现类型')),
                ('zhuangtai', models.IntegerField(db_index=True, default=1, verbose_name='审核状态(1审核中2提现成功3提现失败4审核成功5审核失败6待收款)')),
                ('shenqing_jine', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='申请提现金额(扣款额)')),
                ('shouxufei', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='手续费')),
                ('shijidaozhang', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='实际到账金额')),
                ('feilv', models.DecimalField(decimal_places=4, default=0, max_digits=5, verbose_name='手续费率')),
                ('bhliyou', models.TextField(blank=True, null=True, verbose_name='驳回/失败原因')),
                ('bo_hui_ren_id', models.CharField(blank=True, db_index=True, max_length=11, null=True, verbose_name='驳回人用户ID')),
                ('shenhe_ren_id', models.CharField(blank=True, db_index=True, max_length=11, null=True, verbose_name='审核通过操作人ID')),
                ('tixianjilu_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='关联Tixianjilu.id')),
                ('tixian_auto_id', models.CharField(blank=True, db_index=True, max_length=32, null=True, verbose_name='最近一次打款单号(非唯一，重试收款会更新)')),
                ('fail_reason', models.TextField(blank=True, null=True, verbose_name='微信打款失败原因')),
                ('dakuan_mode', models.PositiveSmallIntegerField(db_index=True, default=1, verbose_name='打款方式(1手动2自动)')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '提现审核记录',
                'verbose_name_plural': '提现审核记录',
                'db_table': 'tixian_shenhe_jilu',
                'indexes': [models.Index(fields=['yonghuid', 'zhuangtai'], name='tixian_shen_yonghui_a782e9_idx'), models.Index(fields=['yonghuid', 'leixing'], name='tixian_shen_yonghui_bb44eb_idx'), models.Index(fields=['shenhe_danhao'], name='tixian_shen_shenhe__4a1ca7_idx')],
            },
        ),
        migrations.CreateModel(
            name='Tixianjilu',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='提现记录ID')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='提现用户ID')),
                ('avatar', models.CharField(blank=True, max_length=500, null=True, verbose_name='头像')),
                ('phone', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号')),
                ('nicheng', models.CharField(max_length=50, null=True, verbose_name='打手昵称')),
                ('leixing', models.PositiveIntegerField(blank=True, null=True, verbose_name='提现类型1:打手佣金2：管事分红')),
                ('zhifu', models.CharField(blank=True, max_length=500, null=True, verbose_name='收款码图片')),
                ('skzhanghao', models.CharField(blank=True, max_length=11, null=True, verbose_name='收款账号')),
                ('jine', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='提现金额')),
                ('zhuangtai', models.IntegerField(blank=True, db_index=True, default=1, null=True, verbose_name='提现状态1:审核2：成功3：失败')),
                ('fangshi', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='收款方式1:微信2：支付宝')),
                ('shenheid', models.CharField(db_index=True, max_length=11, null=True, verbose_name='审核用户ID')),
                ('bhliyou', models.TextField(blank=True, null=True, verbose_name='驳回理由')),
                ('shenhe_jilu_id', models.IntegerField(blank=True, db_index=True, null=True, verbose_name='关联提现审核记录ID(TixianShenheJilu.id)')),
                ('shenhe_danhao', models.CharField(blank=True, db_index=True, max_length=32, null=True, verbose_name='关联提现审核单号')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '提现记录表',
                'verbose_name_plural': '提现记录表',
                'db_table': 'tixianjilu',
                'indexes': [models.Index(fields=['yonghuid'], name='tixianjilu_yonghui_8083bb_idx'), models.Index(fields=['zhuangtai'], name='tixianjilu_zhuangt_839d8e_idx'), models.Index(fields=['shenheid'], name='tixianjilu_shenhei_470e0c_idx'), models.Index(fields=['fangshi'], name='tixianjilu_fangshi_a1e0bc_idx'), models.Index(fields=['shenhe_danhao'], name='tixianjilu_shenhe__7b3e7f_idx'), models.Index(fields=['shenhe_jilu_id'], name='tixianjilu_shenhe__d9355e_idx')],
            },
        ),
        migrations.CreateModel(
            name='TixianAutoRecord',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('tixian_id', models.CharField(db_index=True, max_length=32, unique=True, verbose_name='提现订单号(自定义)')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='用户ID')),
                ('leixing', models.IntegerField(verbose_name='提现类型 1打手 2管事')),
                ('jine', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='申请提现金额')),
                ('shouxufei', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='手续费')),
                ('shijidaozhang', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='实际到账金额')),
                ('feilv', models.DecimalField(decimal_places=4, max_digits=5, verbose_name='费率')),
                ('zhuangtai', models.IntegerField(choices=[(0, '处理中'), (1, '成功'), (2, '失败')], default=0, verbose_name='状态')),
                ('wechat_transfer_no', models.CharField(blank=True, max_length=64, null=True, verbose_name='微信转账单号')),
                ('wechat_package', models.TextField(blank=True, null=True, verbose_name='微信返回的package_info(JSON)')),
                ('fail_reason', models.TextField(blank=True, null=True, verbose_name='失败原因')),
                ('shenhe_danhao', models.CharField(blank=True, db_index=True, max_length=32, null=True, verbose_name='关联审核单号')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('UpdateTime', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
            ],
            options={
                'verbose_name': '自动提现记录',
                'verbose_name_plural': '自动提现记录',
                'db_table': 'tixian_auto_record',
                'indexes': [models.Index(fields=['tixian_id'], name='tixian_auto_tixian__273dac_idx'), models.Index(fields=['yonghuid'], name='tixian_auto_yonghui_61c5b6_idx'), models.Index(fields=['zhuangtai'], name='tixian_auto_zhuangt_24d9fa_idx')],
            },
        ),
        migrations.CreateModel(
            name='RankingRecord',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')),
                ('zhouqi', models.IntegerField(choices=[(1, '日榜'), (2, '月榜')], verbose_name='周期类型')),
                ('tongji_date', models.DateField(db_index=True, verbose_name='统计日期')),
                ('shenfen', models.IntegerField(choices=[(2, '打手'), (3, '管事'), (4, '商家')], verbose_name='用户身份')),
                ('yonghuid', models.CharField(db_index=True, max_length=7, verbose_name='用户ID')),
                ('paiming', models.IntegerField(verbose_name='排名')),
                ('zhizhi', models.DecimalField(decimal_places=2, default=0.0, max_digits=12, verbose_name='指标值')),
                ('nicheng', models.CharField(max_length=50, null=True, verbose_name='用户昵称')),
                ('avatar', models.CharField(blank=True, max_length=500, null=True, verbose_name='头像')),
                ('chuangjian_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
            ],
            options={
                'verbose_name': '排行榜记录',
                'verbose_name_plural': '排行榜记录',
                'db_table': 'ranking_record',
                'indexes': [models.Index(fields=['zhouqi', 'tongji_date', 'shenfen', 'paiming'], name='ranking_rec_zhouqi_fc9f4d_idx'), models.Index(fields=['yonghuid', 'zhouqi'], name='ranking_rec_yonghui_e5be77_idx'), models.Index(fields=['tongji_date'], name='ranking_rec_tongji__820158_idx')],
                'unique_together': {('zhouqi', 'tongji_date', 'shenfen', 'paiming')},
            },
        ),
        migrations.CreateModel(
            name='AdminProfile',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=255, verbose_name='密码')),
                ('wechat', models.CharField(blank=True, max_length=50, verbose_name='管理员微信')),
                ('yaoqingma', models.CharField(db_index=True, max_length=20, null=True, verbose_name='管理员邀请码')),
                ('CreateTime', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('user', models.OneToOneField(db_column='UserUUID', on_delete=django.db.models.deletion.CASCADE, related_name='AdminProfile', to=settings.AUTH_USER_MODEL, verbose_name='关联用户')),
            ],
            options={
                'verbose_name': '管理员扩展表',
                'verbose_name_plural': '管理员扩展表',
                'db_table': 'admin_profile',
            },
        ),
        migrations.AddIndex(
            model_name='user',
            index=models.Index(fields=['UserUID'], name='User_UserUID_a656ea_idx'),
        ),
        migrations.AddIndex(
            model_name='user',
            index=models.Index(fields=['OpenID'], name='User_OpenID_2a920d_idx'),
        ),
        migrations.AddIndex(
            model_name='userzuzhang',
            index=models.Index(fields=['user'], name='user_zuzhan_UserUUI_125e05_idx'),
        ),
        migrations.AddIndex(
            model_name='userzuzhang',
            index=models.Index(fields=['yaoqingma'], name='user_zuzhan_yaoqing_cba91d_idx'),
        ),
        migrations.AddIndex(
            model_name='usershenheguan',
            index=models.Index(fields=['user'], name='user_shenhe_UserUUI_bdc981_idx'),
        ),
        migrations.AddIndex(
            model_name='usershangjia',
            index=models.Index(fields=['user'], name='user_shangj_UserUUI_9d7fad_idx'),
        ),
        migrations.AddIndex(
            model_name='usershangjia',
            index=models.Index(fields=['nicheng'], name='user_shangj_nicheng_6967bc_idx'),
        ),
        migrations.AddIndex(
            model_name='usersensitivedata',
            index=models.Index(fields=['user_uuid'], name='user_sensit_user_uu_1d562f_idx'),
        ),
        migrations.AddIndex(
            model_name='userkefu',
            index=models.Index(fields=['user'], name='user_kefu_UserUUI_ccf71c_idx'),
        ),
        migrations.AddIndex(
            model_name='userkefu',
            index=models.Index(fields=['zhuangtai'], name='user_kefu_zhuangt_317491_idx'),
        ),
        migrations.AddIndex(
            model_name='userguanshi',
            index=models.Index(fields=['user'], name='user_guansh_UserUUI_1d9453_idx'),
        ),
        migrations.AddIndex(
            model_name='userguanshi',
            index=models.Index(fields=['yaoqingma'], name='user_guansh_yaoqing_21d1d4_idx'),
        ),
        migrations.AddIndex(
            model_name='userdashou',
            index=models.Index(fields=['user'], name='user_dashou_UserUUI_92ac5a_idx'),
        ),
        migrations.AddIndex(
            model_name='userdashou',
            index=models.Index(fields=['yaoqingren'], name='user_dashou_yaoqing_894658_idx'),
        ),
        migrations.AddIndex(
            model_name='userboss',
            index=models.Index(fields=['user'], name='user_boss_UserUUI_4579c2_idx'),
        ),
        migrations.AddIndex(
            model_name='adminprofile',
            index=models.Index(fields=['user'], name='admin_profi_UserUUI_0699ce_idx'),
        ),
    ]
