Files
ai_web/backend/apps/bounties/migrations/0005_add_indexes.py

71 lines
2.9 KiB
Python
Raw Normal View History

2026-01-28 16:00:56 +08:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bounties", "0004_extension_request"),
]
operations = [
migrations.AddIndex(
model_name="bounty",
index=models.Index(fields=["status", "created_at"], name="bounty_status_created_idx"),
),
migrations.AddIndex(
model_name="bounty",
index=models.Index(fields=["publisher", "created_at"], name="bounty_publisher_created_idx"),
),
migrations.AddIndex(
model_name="bounty",
index=models.Index(fields=["acceptor", "created_at"], name="bounty_acceptor_created_idx"),
),
migrations.AddIndex(
model_name="bountyapplication",
index=models.Index(fields=["bounty", "status"], name="bountyapp_bounty_status_idx"),
),
migrations.AddIndex(
model_name="bountyapplication",
index=models.Index(fields=["applicant", "status"], name="bountyapp_applicant_status_idx"),
),
migrations.AddIndex(
model_name="bountycomment",
index=models.Index(fields=["bounty", "created_at"], name="bountycomment_bounty_created_idx"),
),
migrations.AddIndex(
model_name="bountycomment",
index=models.Index(fields=["parent", "created_at"], name="bountycomment_parent_created_idx"),
),
migrations.AddIndex(
model_name="bountydelivery",
index=models.Index(fields=["bounty", "status"], name="bountydelivery_bounty_status_idx"),
),
migrations.AddIndex(
model_name="bountydelivery",
index=models.Index(fields=["submitted_at"], name="bountydelivery_submitted_idx"),
),
migrations.AddIndex(
model_name="bountydispute",
index=models.Index(fields=["bounty", "status"], name="bountydispute_bounty_status_idx"),
),
migrations.AddIndex(
model_name="bountydispute",
index=models.Index(fields=["status", "created_at"], name="bountydispute_status_created_idx"),
),
migrations.AddIndex(
model_name="bountyreview",
index=models.Index(fields=["bounty", "created_at"], name="bountyreview_bounty_created_idx"),
),
migrations.AddIndex(
model_name="bountyreview",
index=models.Index(fields=["reviewee", "created_at"], name="bountyreview_reviewee_created_idx"),
),
migrations.AddIndex(
model_name="bountyextensionrequest",
index=models.Index(fields=["bounty", "status"], name="bountyext_bounty_status_idx"),
),
migrations.AddIndex(
model_name="bountyextensionrequest",
index=models.Index(fields=["requester", "status"], name="bountyext_requester_status_idx"),
),
]