Merge pull request #165 from SDSRV-IDP/dev/search_content

Indexing reason for the better perf of searching
This commit is contained in:
Nguyễn Duy Hiển 2024-12-05 15:33:37 +07:00 committed by GitHub Enterprise
commit 7767f37c52

View File

@ -23,7 +23,7 @@ class SubscriptionRequestFile(models.Model):
doc_type = models.CharField(max_length=10, default="")
index_in_request = models.IntegerField(default=0) # by doc_type
processing_time = models.FloatField(default=-1) # in milisecond
reason = models.TextField(blank=True)
reason = models.TextField(blank=True, db_index=True)
counter_measures = models.TextField(blank=True)
is_reviewed = models.BooleanField(default=False)
is_required = models.BooleanField(default=True)