bottleneckcrm/backend/common/migrations/0019_activity_analytics_idx.py
Ashwin e3b5181b19 Refactor comments for clarity and consistency across multiple screens and services
- Updated comments in LeadsListScreen, MoreScreen, TaskDetailScreen, TaskFormScreen, TasksListScreen, TicketAnalyticsScreen, TicketDetailScreen, TicketsListScreen, ApiService, AuthService, CrashReporting, DealCard, TicketCard, MultiSelectSheet, KanbanColumn, StageStepper, TicketApprovalPanel, TicketPropertiesCard, and TicketTimePanel to improve readability and maintain a consistent style.
- Adjusted punctuation and phrasing for better flow and understanding.
2026-08-03 09:36:48 +05:30

23 lines
678 B
Python

# Composite index used by the cases analytics aggregation queries. See
# docs/cases/tier2/reporting.md "Data model changes". Lets us scan
# `Case` Activity rows by (entity_type, action, created_at) inside a single
# org without re-walking the whole table.
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("common", "0018_add_notification"),
]
operations = [
migrations.AddIndex(
model_name="activity",
index=models.Index(
fields=["org", "entity_type", "action", "created_at"],
name="activity_analytics_idx",
),
),
]