# Generated by Django 6.0 on 2026-01-06 23:40

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("shangpin", "0006_shangpinleixing_huiyuan_id_and_more"),
    ]

    operations = [
        migrations.AddField(
            model_name="huiyuan",
            name="guanshifc",
            field=models.DecimalField(
                decimal_places=2, default=0.0, max_digits=10, verbose_name="管事分成"
            ),
        ),
        migrations.AddField(
            model_name="huiyuan",
            name="jtjieshao",
            field=models.TextField(blank=True, null=True, verbose_name="会员规则介绍"),
        ),
        migrations.CreateModel(
            name="Czjilu",
            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, unique=True, verbose_name="订单ID"
                    ),
                ),
                (
                    "huiyuan_id",
                    models.CharField(
                        blank=True, max_length=6, null=True, verbose_name="会员ID"
                    ),
                ),
                (
                    "zhuangtai",
                    models.IntegerField(blank=True, null=True, verbose_name="订单状态"),
                ),
                (
                    "yonghuid",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="用户ID"
                    ),
                ),
                (
                    "jine",
                    models.DecimalField(
                        decimal_places=2, max_digits=10, verbose_name="订单金额"
                    ),
                ),
                (
                    "leixing",
                    models.IntegerField(
                        blank=True,
                        null=True,
                        verbose_name="充值类型，1:会员，2:押金,3:积分,4:商家",
                    ),
                ),
                (
                    "shuoming",
                    models.CharField(
                        blank=True, max_length=100, 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": "czjilu",
                "indexes": [
                    models.Index(
                        fields=["dingdan_id"], name="czjilu_dingdan_39bbd0_idx"
                    ),
                    models.Index(fields=["yonghuid"], name="czjilu_yonghui_a0555f_idx"),
                ],
            },
        ),
        migrations.CreateModel(
            name="Gsfenhong",
            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"),
                ),
                (
                    "guanshi",
                    models.CharField(
                        db_index=True, max_length=7, verbose_name="管事ID"
                    ),
                ),
                (
                    "dashouid",
                    models.CharField(
                        db_index=True, max_length=7, unique=True, verbose_name="打手ID"
                    ),
                ),
                (
                    "shuoming",
                    models.CharField(
                        blank=True, max_length=100, null=True, verbose_name="订单说明"
                    ),
                ),
                (
                    "fenhong",
                    models.DecimalField(
                        decimal_places=2, max_digits=10, verbose_name="订单分红金额"
                    ),
                ),
                (
                    "avatar",
                    models.CharField(
                        blank=True, max_length=500, null=True, verbose_name="打手头像"
                    ),
                ),
                (
                    "nicheng",
                    models.CharField(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={
                "verbose_name": "管事分红记录",
                "verbose_name_plural": "管事分红记录",
                "db_table": "gsfenhong",
                "indexes": [
                    models.Index(
                        fields=["guanshi"], name="gsfenhong_guanshi_dc440f_idx"
                    ),
                    models.Index(
                        fields=["dashouid"], name="gsfenhong_dashoui_5473ca_idx"
                    ),
                ],
            },
        ),
    ]
