# Generated by Django 6.0 on 2025-12-30 15:31

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("dingdan", "0006_dingdan_dashou_liuyan_dingdan_leixing_id_and_more"),
    ]

    operations = [
        migrations.CreateModel(
            name="Chufajilu",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "dashouid",
                    models.CharField(
                        db_index=True,
                        max_length=7,
                        null=True,
                        verbose_name="被罚打手ID",
                    ),
                ),
                (
                    "qingqiuid",
                    models.CharField(
                        db_index=True,
                        max_length=7,
                        null=True,
                        verbose_name="请求处罚ID",
                    ),
                ),
                (
                    "chuliid",
                    models.CharField(
                        db_index=True,
                        max_length=7,
                        null=True,
                        verbose_name="处理处罚ID",
                    ),
                ),
                (
                    "cfliyou",
                    models.TextField(blank=True, null=True, verbose_name="处罚理由"),
                ),
                (
                    "sqzhuangtai",
                    models.IntegerField(
                        blank=True,
                        default=0,
                        null=True,
                        verbose_name="处罚申请状态:0待处理,1成功,2驳回",
                    ),
                ),
                (
                    "bhliyou",
                    models.TextField(
                        blank=True, null=True, verbose_name="驳回处罚理由"
                    ),
                ),
                ("jifen", models.IntegerField(default=0, verbose_name="扣除打手积分")),
                (
                    "dingdan_id",
                    models.CharField(
                        db_index=True, max_length=32, null=True, verbose_name="订单ID"
                    ),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "db_table": "chufajilu",
            },
        ),
        migrations.CreateModel(
            name="Tuikuanjilu",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "dingdan_id",
                    models.CharField(max_length=32, unique=True, verbose_name="订单ID"),
                ),
                (
                    "dashouid",
                    models.CharField(
                        max_length=7, null=True, verbose_name="接单打手ID"
                    ),
                ),
                (
                    "qingqiuid",
                    models.CharField(
                        max_length=7, null=True, verbose_name="请求用户ID"
                    ),
                ),
                (
                    "chuliid",
                    models.CharField(
                        db_index=True, max_length=7, null=True, verbose_name="处理人ID"
                    ),
                ),
                (
                    "cfliyou",
                    models.TextField(blank=True, null=True, verbose_name="理由"),
                ),
                (
                    "sqzhuangtai",
                    models.IntegerField(
                        blank=True,
                        db_index=True,
                        default=0,
                        null=True,
                        verbose_name="处罚申请状态:0待处理,1成功,2驳回",
                    ),
                ),
                (
                    "bhliyou",
                    models.TextField(blank=True, null=True, verbose_name="驳回理由"),
                ),
                (
                    "jine",
                    models.DecimalField(
                        blank=True,
                        decimal_places=2,
                        max_digits=10,
                        null=True,
                        verbose_name="订单金额",
                    ),
                ),
                (
                    "dashou_fencheng",
                    models.DecimalField(
                        blank=True,
                        decimal_places=2,
                        max_digits=10,
                        null=True,
                        verbose_name="打手分成",
                    ),
                ),
                (
                    "jieshao",
                    models.TextField(blank=True, null=True, verbose_name="订单介绍"),
                ),
                (
                    "beizhu",
                    models.TextField(blank=True, null=True, verbose_name="订单备注"),
                ),
                (
                    "nicheng",
                    models.CharField(
                        blank=True, max_length=50, null=True, verbose_name="游戏昵称"
                    ),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "db_table": "tuikuanjilu",
            },
        ),
        migrations.AddField(
            model_name="dingdanshangjia",
            name="bhliyou",
            field=models.TextField(
                blank=True, null=True, verbose_name="驳回商家处罚理由"
            ),
        ),
        migrations.AddField(
            model_name="dingdanshangjia",
            name="cfliyou",
            field=models.TextField(blank=True, null=True, verbose_name="商家处罚理由"),
        ),
        migrations.AddField(
            model_name="dingdanshangjia",
            name="sqzhuangtai",
            field=models.IntegerField(
                blank=True,
                default=0,
                null=True,
                verbose_name="处罚申请状态:0待处理,1成功,2驳回",
            ),
        ),
        migrations.AlterField(
            model_name="dingdanpingtai",
            name="laoban_id",
            field=models.CharField(
                blank=True,
                db_index=True,
                max_length=32,
                null=True,
                verbose_name="老板ID",
            ),
        ),
        migrations.AlterField(
            model_name="dingdanshangjia",
            name="shangjia_id",
            field=models.CharField(
                blank=True,
                db_index=True,
                max_length=32,
                null=True,
                verbose_name="商家ID",
            ),
        ),
        migrations.AddIndex(
            model_name="dingdanpingtai",
            index=models.Index(
                fields=["laoban_id"], name="dingdan_pin_laoban__d55e6f_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="dingdanshangjia",
            index=models.Index(
                fields=["shangjia_id"], name="dingdan_sha_shangji_64d28b_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="chufajilu",
            index=models.Index(
                fields=["dashouid"], name="chufajilu_dashoui_07aac0_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="chufajilu",
            index=models.Index(
                fields=["qingqiuid"], name="chufajilu_qingqiu_ac160e_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="chufajilu",
            index=models.Index(fields=["chuliid"], name="chufajilu_chuliid_cd63ac_idx"),
        ),
        migrations.AddIndex(
            model_name="chufajilu",
            index=models.Index(
                fields=["dingdan_id"], name="chufajilu_dingdan_b8f0c2_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="tuikuanjilu",
            index=models.Index(
                fields=["chuliid"], name="tuikuanjilu_chuliid_0b0f16_idx"
            ),
        ),
        migrations.AddIndex(
            model_name="tuikuanjilu",
            index=models.Index(
                fields=["sqzhuangtai"], name="tuikuanjilu_sqzhuan_d89dc9_idx"
            ),
        ),
    ]
