# Generated by Django 4.2.27 on 2026-06-18 17:46

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('orders', '0002_chatsession_commissionrate_escortorder_and_more'),
        ('rank', '0002_alter_dashoubiaoxian_dingdan_and_more'),
    ]

    operations = [
        migrations.DeleteModel(
            name='Dingdan',
        ),
        migrations.DeleteModel(
            name='DingdanPingtai',
        ),
        migrations.DeleteModel(
            name='DingdanShangjia',
        ),
        migrations.DeleteModel(
            name='Fadan',
        ),
        migrations.DeleteModel(
            name='FadanShensuTupian',
        ),
        migrations.AddIndex(
            model_name='refundrecord',
            index=models.Index(fields=['ProcessorID'], name='tuikuanjilu_chuliid_0b0f16_idx'),
        ),
        migrations.AddIndex(
            model_name='refundrecord',
            index=models.Index(fields=['ApplyStatus'], name='tuikuanjilu_sqzhuan_d89dc9_idx'),
        ),
        migrations.AddIndex(
            model_name='playerrating',
            index=models.Index(fields=['PlayerID'], name='pingfenbiao_dashou_f62f10_idx'),
        ),
        migrations.AddIndex(
            model_name='playerdeliveryimage',
            index=models.Index(fields=['PlayerID'], name='dashoutupia_dashou_7de8bd_idx'),
        ),
        migrations.AddIndex(
            model_name='playerdeliveryimage',
            index=models.Index(fields=['OrderID'], name='dashoutupia_dingdan_97c685_idx'),
        ),
        migrations.AddField(
            model_name='platformorderext',
            name='Order',
            field=models.OneToOneField(db_column='dingdan_id', on_delete=django.db.models.deletion.CASCADE, related_name='pingtai_kuozhan', to='orders.order', verbose_name='订单'),
        ),
        migrations.AddIndex(
            model_name='penaltyrecord',
            index=models.Index(fields=['PlayerID'], name='chufajilu_dashoui_07aac0_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyrecord',
            index=models.Index(fields=['ApplicantID'], name='chufajilu_qingqiu_ac160e_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyrecord',
            index=models.Index(fields=['ProcessorID'], name='chufajilu_chuliid_cd63ac_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyrecord',
            index=models.Index(fields=['OrderID'], name='chufajilu_dingdan_b8f0c2_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyevidenceimage',
            index=models.Index(fields=['UserID'], name='chufatupian_yonghui_71e585_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyevidenceimage',
            index=models.Index(fields=['OrderID'], name='chufatupian_dingdan_ce0dd4_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltybonus',
            index=models.Index(fields=['BeneficiaryID'], name='fadan_fenhong_zhe_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltybonus',
            index=models.Index(fields=['Identity'], name='fadan_fenhong_sf_idx'),
        ),
        migrations.AddField(
            model_name='penaltyappealimage',
            name='Penalty',
            field=models.ForeignKey(db_column='fadan_id', on_delete=django.db.models.deletion.CASCADE, related_name='shensu_tupians', to='orders.penalty', verbose_name='关联罚单'),
        ),
        migrations.AddIndex(
            model_name='penalty',
            index=models.Index(fields=['PenalizedUserID', 'AffectsGrabbing', 'Status'], name='fadan_qiangdan_check'),
        ),
        migrations.AddIndex(
            model_name='penalty',
            index=models.Index(fields=['RelatedOrderID'], name='fadan_dingdan_idx'),
        ),
        migrations.AddIndex(
            model_name='orderplayerhistory',
            index=models.Index(fields=['OrderID'], name='order_dasho_dingdan_1e79ab_idx'),
        ),
        migrations.AddIndex(
            model_name='orderplayerhistory',
            index=models.Index(fields=['PlayerID'], name='order_dasho_dashou__0a637c_idx'),
        ),
        migrations.AddIndex(
            model_name='order',
            index=models.Index(fields=['Status'], name='dingdan_zhuangt_2febe8_idx'),
        ),
        migrations.AddIndex(
            model_name='order',
            index=models.Index(fields=['OrderID'], name='dingdan_dingdan_83dcb6_idx'),
        ),
        migrations.AddIndex(
            model_name='order',
            index=models.Index(fields=['PlayerID'], name='dingdan_jiedan__921bfa_idx'),
        ),
        migrations.AddIndex(
            model_name='order',
            index=models.Index(fields=['WechatTransactionID'], name='dingdan_wechat__278b79_idx'),
        ),
        migrations.AddField(
            model_name='merchantorderext',
            name='Order',
            field=models.OneToOneField(db_column='dingdan_id', on_delete=django.db.models.deletion.CASCADE, related_name='shangjia_kuozhan', to='orders.order', verbose_name='订单'),
        ),
        migrations.AddIndex(
            model_name='escortorder',
            index=models.Index(fields=['MainPlayerID'], name='dingdan_pei_zhudash_583f4e_idx'),
        ),
        migrations.AddIndex(
            model_name='escortorder',
            index=models.Index(fields=['Escort1ID'], name='dingdan_pei_peihu1__728279_idx'),
        ),
        migrations.AddIndex(
            model_name='escortorder',
            index=models.Index(fields=['Escort2ID'], name='dingdan_pei_peihu2__77e45e_idx'),
        ),
        migrations.AddIndex(
            model_name='escortorder',
            index=models.Index(fields=['Status'], name='dingdan_pei_zhuangt_22eaf6_idx'),
        ),
        migrations.AddIndex(
            model_name='chatsession',
            index=models.Index(fields=['User1ID'], name='liaotian_user1_i_6be6cd_idx'),
        ),
        migrations.AddIndex(
            model_name='chatsession',
            index=models.Index(fields=['User2ID'], name='liaotian_user2_i_9f61a4_idx'),
        ),
        migrations.AddIndex(
            model_name='chatsession',
            index=models.Index(fields=['Status'], name='liaotian_zhuangt_5e8be5_idx'),
        ),
        migrations.AddIndex(
            model_name='platformorderext',
            index=models.Index(fields=['BossID'], name='dingdan_pin_laoban__d55e6f_idx'),
        ),
        migrations.AddIndex(
            model_name='platformorderext',
            index=models.Index(fields=['ShopID'], name='dingdan_pin_dianpu__9fbe27_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyappealimage',
            index=models.Index(fields=['Penalty'], name='fadan_shens_fadan_i_78fab9_idx'),
        ),
        migrations.AddIndex(
            model_name='penaltyappealimage',
            index=models.Index(fields=['PenalizedUserID'], name='fadan_shens_beichuf_59748e_idx'),
        ),
        migrations.AddIndex(
            model_name='merchantorderext',
            index=models.Index(fields=['MerchantID'], name='dingdan_sha_shangji_64d28b_idx'),
        ),
    ]
