# Generated by Django 6.0 on 2025-12-26 17:26

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("dingdan", "0005_dingdan_tupian"),
    ]

    operations = [
        migrations.AddField(
            model_name="dingdan",
            name="dashou_liuyan",
            field=models.TextField(blank=True, null=True, verbose_name="打手留言"),
        ),
        migrations.AddField(
            model_name="dingdan",
            name="leixing_id",
            field=models.PositiveIntegerField(
                blank=True, null=True, verbose_name="商品类型ID"
            ),
        ),
        migrations.AlterField(
            model_name="dingdan",
            name="dingdan_id",
            field=models.CharField(
                db_index=True, max_length=32, unique=True, verbose_name="订单ID"
            ),
        ),
        migrations.AlterField(
            model_name="dingdan",
            name="jiedan_dashou_id",
            field=models.CharField(
                blank=True,
                db_index=True,
                max_length=32,
                null=True,
                verbose_name="接单打手ID",
            ),
        ),
        migrations.AlterField(
            model_name="dingdan",
            name="zhuangtai",
            field=models.IntegerField(
                blank=True, db_index=True, default=1, null=True, verbose_name="订单状态"
            ),
        ),
        migrations.CreateModel(
            name="Dashoutupian",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "dingdan_id",
                    models.CharField(
                        db_index=True, max_length=32, null=True, verbose_name="订单ID"
                    ),
                ),
                (
                    "dashou",
                    models.CharField(
                        blank=True,
                        db_index=True,
                        max_length=32,
                        null=True,
                        verbose_name="接单打手ID",
                    ),
                ),
                (
                    "tupian",
                    models.CharField(
                        blank=True,
                        max_length=500,
                        null=True,
                        verbose_name="打手提交图片URL",
                    ),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "db_table": "dashoutupian",
                "indexes": [
                    models.Index(
                        fields=["dashou"], name="dashoutupia_dashou_7de8bd_idx"
                    ),
                    models.Index(
                        fields=["dingdan_id"], name="dashoutupia_dingdan_97c685_idx"
                    ),
                ],
            },
        ),
        migrations.CreateModel(
            name="Pingfen",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "dashou",
                    models.CharField(
                        blank=True,
                        db_index=True,
                        max_length=32,
                        null=True,
                        verbose_name="接单打手ID",
                    ),
                ),
                (
                    "zongfen",
                    models.PositiveIntegerField(default=0, verbose_name="总分"),
                ),
                (
                    "cishu",
                    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": "评分表",
                "db_table": "pingfenbiao",
                "indexes": [
                    models.Index(
                        fields=["dashou"], name="pingfenbiao_dashou_f62f10_idx"
                    )
                ],
            },
        ),
    ]
