add index to database in django code example
Example: django multi column index
from django.db import models
class Customer(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
class Meta:
index_together = [
["first_name", "last_name"]
]