# Generated by Django 4.2.27 on 2026-04-09 14:53

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("houtai", "0001_initial"),
    ]

    operations = [
        migrations.CreateModel(
            name="ZuzhangRiTongji",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="组长用户ID"
                    ),
                ),
                ("riqi", models.DateField(db_index=True, verbose_name="日期")),
                (
                    "yaoqing_guanshi_shu",
                    models.IntegerField(default=0, verbose_name="邀请管事总数"),
                ),
                (
                    "shouru_zonge",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="收入总额（分佣）",
                    ),
                ),
                (
                    "fenyong_jine",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="分佣金额",
                    ),
                ),
            ],
            options={
                "verbose_name": "组长每日统计",
                "db_table": "zuzhang_ri_tongji",
                "indexes": [
                    models.Index(
                        fields=["riqi", "-yaoqing_guanshi_shu"],
                        name="zuzhang_ri__riqi_87169e_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-shouru_zonge"],
                        name="zuzhang_ri__riqi_1d7e51_idx",
                    ),
                ],
                "unique_together": {("yonghuid", "riqi")},
            },
        ),
        migrations.CreateModel(
            name="ShangjiaRiTongji",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="商家用户ID"
                    ),
                ),
                ("riqi", models.DateField(db_index=True, verbose_name="日期")),
                (
                    "paifa_dingdan_shu",
                    models.IntegerField(default=0, verbose_name="派发订单总数"),
                ),
                (
                    "paifa_jine",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="派发订单总金额",
                    ),
                ),
                (
                    "jiesuan_dingdan_shu",
                    models.IntegerField(default=0, verbose_name="结算订单总数"),
                ),
                (
                    "jiesuan_jine",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="结算总金额",
                    ),
                ),
                (
                    "tuikuan_dingdan_shu",
                    models.IntegerField(default=0, verbose_name="退款订单总数"),
                ),
                (
                    "tuikuan_jine",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="退款总金额",
                    ),
                ),
            ],
            options={
                "verbose_name": "商家每日统计",
                "db_table": "shangjia_ri_tongji",
                "indexes": [
                    models.Index(
                        fields=["riqi", "-paifa_jine"],
                        name="shangjia_ri_riqi_d00f7f_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-jiesuan_jine"],
                        name="shangjia_ri_riqi_25772a_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-paifa_dingdan_shu"],
                        name="shangjia_ri_riqi_e05c54_idx",
                    ),
                ],
                "unique_together": {("yonghuid", "riqi")},
            },
        ),
        migrations.CreateModel(
            name="GuanshiXufeiRiTongji",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="管事用户ID"
                    ),
                ),
                ("riqi", models.DateField(db_index=True, verbose_name="日期")),
                (
                    "xufei_zongshu",
                    models.IntegerField(default=0, verbose_name="今日续费总数"),
                ),
                (
                    "xufei_shouyi",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="续费收益金额",
                    ),
                ),
            ],
            options={
                "verbose_name": "管事续费每日统计",
                "db_table": "guanshi_xufei_ri_tongji",
                "indexes": [
                    models.Index(
                        fields=["riqi", "-xufei_zongshu"],
                        name="guanshi_xuf_riqi_7c128f_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-xufei_shouyi"],
                        name="guanshi_xuf_riqi_8f09b5_idx",
                    ),
                ],
                "unique_together": {("yonghuid", "riqi")},
            },
        ),
        migrations.CreateModel(
            name="GuanshiRiTongji",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="管事用户ID"
                    ),
                ),
                ("riqi", models.DateField(db_index=True, verbose_name="日期")),
                (
                    "yaoqing_dashou_shu",
                    models.IntegerField(default=0, verbose_name="邀请打手总数"),
                ),
                (
                    "chongzhi_dashou_shu",
                    models.IntegerField(default=0, verbose_name="充值打手数量"),
                ),
                (
                    "shouru_zonge",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="收入总额",
                    ),
                ),
            ],
            options={
                "verbose_name": "管事每日统计",
                "db_table": "guanshi_ri_tongji",
                "indexes": [
                    models.Index(
                        fields=["riqi", "-yaoqing_dashou_shu"],
                        name="guanshi_ri__riqi_075e1a_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-chongzhi_dashou_shu"],
                        name="guanshi_ri__riqi_78a79d_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-shouru_zonge"],
                        name="guanshi_ri__riqi_334f52_idx",
                    ),
                ],
                "unique_together": {("yonghuid", "riqi")},
            },
        ),
        migrations.CreateModel(
            name="DashouRiTongji",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="打手用户ID"
                    ),
                ),
                ("riqi", models.DateField(db_index=True, verbose_name="日期")),
                (
                    "jiedan_zongliang",
                    models.IntegerField(default=0, verbose_name="接单总量"),
                ),
                (
                    "chengjiao_zongliang",
                    models.IntegerField(default=0, verbose_name="成交单总量"),
                ),
                (
                    "jiedan_zonge",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="接单总金额",
                    ),
                ),
                (
                    "chengjiao_zonge",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="成交总金额",
                    ),
                ),
                (
                    "tuikuan_liang",
                    models.IntegerField(default=0, verbose_name="退款订单量"),
                ),
                (
                    "tuikuan_jine",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="退款总金额",
                    ),
                ),
            ],
            options={
                "verbose_name": "打手每日统计",
                "db_table": "dashou_ri_tongji",
                "indexes": [
                    models.Index(
                        fields=["riqi", "-jiedan_zongliang"],
                        name="dashou_ri_t_riqi_95a785_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-chengjiao_zongliang"],
                        name="dashou_ri_t_riqi_ad9c1a_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-jiedan_zonge"],
                        name="dashou_ri_t_riqi_5da703_idx",
                    ),
                    models.Index(
                        fields=["riqi", "-chengjiao_zonge"],
                        name="dashou_ri_t_riqi_0a3156_idx",
                    ),
                ],
                "unique_together": {("yonghuid", "riqi")},
            },
        ),
    ]
