# Generated by Django 4.2.27 on 2026-04-06 23:26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("peizhi", "0011_clubconfig_customer_service_api_url_and_more"),
    ]

    operations = [
        migrations.AddField(
            model_name="club",
            name="receive_rate",
            field=models.DecimalField(
                decimal_places=4,
                default=1.0,
                max_digits=5,
                verbose_name="接收打手分红费率",
            ),
        ),
        migrations.AddField(
            model_name="clubconfig",
            name="storage_bucket_name",
            field=models.CharField(
                blank=True, default="", max_length=100, verbose_name="存储桶名称"
            ),
        ),
        migrations.AddField(
            model_name="dailydispatchstat",
            name="claimed_amount",
            field=models.DecimalField(
                decimal_places=2, default=0.0, max_digits=12, verbose_name="抢单总额"
            ),
        ),
        migrations.AddField(
            model_name="dailydispatchstat",
            name="claimed_count",
            field=models.PositiveIntegerField(default=0, verbose_name="抢单数"),
        ),
        migrations.CreateModel(
            name="DailyPayoutStat",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "date",
                    models.DateField(
                        db_index=True, unique=True, verbose_name="统计日期"
                    ),
                ),
                ("year", models.PositiveSmallIntegerField(verbose_name="年份")),
                ("month", models.PositiveSmallIntegerField(verbose_name="月份")),
                ("day", models.PositiveSmallIntegerField(verbose_name="日期")),
                (
                    "total_amount",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="出款总额",
                    ),
                ),
                (
                    "total_count",
                    models.PositiveIntegerField(default=0, 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": "daily_payout_stat",
                "indexes": [
                    models.Index(fields=["date"], name="daily_payou_date_b534ec_idx"),
                    models.Index(
                        fields=["year", "month", "day"],
                        name="daily_payou_year_6376ca_idx",
                    ),
                ],
            },
        ),
        migrations.CreateModel(
            name="DailyIncomeStat",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "date",
                    models.DateField(
                        db_index=True, unique=True, verbose_name="统计日期"
                    ),
                ),
                ("year", models.PositiveSmallIntegerField(verbose_name="年份")),
                ("month", models.PositiveSmallIntegerField(verbose_name="月份")),
                ("day", models.PositiveSmallIntegerField(verbose_name="日期")),
                (
                    "total_amount",
                    models.DecimalField(
                        decimal_places=2,
                        default=0.0,
                        max_digits=12,
                        verbose_name="总收入金额",
                    ),
                ),
                (
                    "total_count",
                    models.PositiveIntegerField(default=0, 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": "daily_income_stat",
                "indexes": [
                    models.Index(fields=["date"], name="daily_incom_date_75e6df_idx"),
                    models.Index(
                        fields=["year", "month", "day"],
                        name="daily_incom_year_d85d10_idx",
                    ),
                ],
            },
        ),
    ]
