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

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("dingdan", "0009_dingdan_liaotian_pindao"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="dingdan",
            name="liaotian_pindao",
        ),
        migrations.AddField(
            model_name="dingdan",
            name="user1_id",
            field=models.CharField(
                db_index=True, max_length=30, null=True, verbose_name="用户1标识"
            ),
        ),
        migrations.AddField(
            model_name="dingdan",
            name="user2_id",
            field=models.CharField(
                db_index=True, max_length=30, null=True, verbose_name="用户2打手标识"
            ),
        ),
        migrations.CreateModel(
            name="Liaotian",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        primary_key=True, serialize=False, verbose_name="主键ID"
                    ),
                ),
                (
                    "user1_id",
                    models.CharField(
                        db_index=True, max_length=30, verbose_name="用户1标识"
                    ),
                ),
                (
                    "user2_id",
                    models.CharField(
                        db_index=True, max_length=30, verbose_name="用户2标识"
                    ),
                ),
                (
                    "dingdan_id",
                    models.CharField(max_length=32, unique=True, verbose_name="订单ID"),
                ),
                (
                    "zhuangtai",
                    models.IntegerField(
                        choices=[(1, "开启中"), (0, "已关闭")],
                        db_index=True,
                        default=1,
                        verbose_name="聊天状态",
                    ),
                ),
                (
                    "create_time",
                    models.DateTimeField(auto_now_add=True, verbose_name="创建时间"),
                ),
                (
                    "update_time",
                    models.DateTimeField(auto_now=True, verbose_name="更新时间"),
                ),
            ],
            options={
                "db_table": "liaotian",
                "indexes": [
                    models.Index(
                        fields=["user1_id"], name="liaotian_user1_i_6be6cd_idx"
                    ),
                    models.Index(
                        fields=["user2_id"], name="liaotian_user2_i_9f61a4_idx"
                    ),
                    models.Index(
                        fields=["zhuangtai"], name="liaotian_zhuangt_5e8be5_idx"
                    ),
                ],
            },
        ),
    ]
