# Generated by Django 4.2.27 on 2026-03-09 15:11

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("yonghu", "0025_userguanshi_fenghong_erci_and_more"),
    ]

    operations = [
        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="失败原因"),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "verbose_name": "自动提现记录",
                "verbose_name_plural": "自动提现记录",
                "db_table": "tixian_auto_record",
            },
        ),
        migrations.AlterModelOptions(
            name="userdashou",
            options={},
        ),
        migrations.RemoveIndex(
            model_name="userdashou",
            name="user_dashou_user_id_cf0410_idx",
        ),
        migrations.RemoveIndex(
            model_name="userdashou",
            name="user_dashou_yaoqing_894658_idx",
        ),
        migrations.AddField(
            model_name="userdashou",
            name="ewai_xiane",
            field=models.DecimalField(
                decimal_places=2,
                default=0.0,
                max_digits=10,
                verbose_name="额外提现限额(元)",
            ),
        ),
        migrations.AddField(
            model_name="userdashou",
            name="jinritixian_jine",
            field=models.DecimalField(
                decimal_places=2,
                default=0.0,
                max_digits=10,
                verbose_name="今日已提现金额",
            ),
        ),
        migrations.AddField(
            model_name="userdashou",
            name="kaioi_ewai_xiane",
            field=models.BooleanField(
                default=False, verbose_name="是否开启额外提现限额"
            ),
        ),
        migrations.AddField(
            model_name="userdashou",
            name="last_tixian_date",
            field=models.DateField(blank=True, null=True, verbose_name="最近提现日期"),
        ),
        migrations.AddField(
            model_name="userguanshi",
            name="ewai_xiane",
            field=models.DecimalField(
                decimal_places=2,
                default=0.0,
                max_digits=10,
                verbose_name="额外提现限额(元)",
            ),
        ),
        migrations.AddField(
            model_name="userguanshi",
            name="invite_qrcode_url",
            field=models.CharField(
                blank=True,
                max_length=500,
                null=True,
                verbose_name="邀请码二维码图片URL",
            ),
        ),
        migrations.AddField(
            model_name="userguanshi",
            name="jinritixian_jine",
            field=models.DecimalField(
                decimal_places=2,
                default=0.0,
                max_digits=10,
                verbose_name="今日已提现金额",
            ),
        ),
        migrations.AddField(
            model_name="userguanshi",
            name="kaioi_ewai_xiane",
            field=models.BooleanField(
                default=False, verbose_name="是否开启额外提现限额"
            ),
        ),
        migrations.AddField(
            model_name="userguanshi",
            name="last_tixian_date",
            field=models.DateField(blank=True, null=True, verbose_name="最近提现日期"),
        ),
        migrations.AlterField(
            model_name="tixianjilu",
            name="shenheid",
            field=models.CharField(
                db_index=True, max_length=11, null=True, verbose_name="审核用户ID"
            ),
        ),
        migrations.AlterModelTable(
            name="userdashou",
            table=None,
        ),
        migrations.AddIndex(
            model_name="tixianautorecord",
            index=models.Index(
                fields=["tixian_id"], name="tixian_auto_tixian__273dac_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="tixianautorecord",
            index=models.Index(
                fields=["yonghuid"], name="tixian_auto_yonghui_61c5b6_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="tixianautorecord",
            index=models.Index(
                fields=["zhuangtai"], name="tixian_auto_zhuangt_24d9fa_idx"
            ),
        ),
    ]
