Skip to content

Commit

Permalink
feature/add-person-ref-and-matter-ref-index-for-matter-sponsor (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
tohuynh authored Mar 9, 2022
1 parent c7b554d commit 1127f74
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cdp_backend/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,14 @@ def Example(cls) -> Model:
return matter_sponsor

_PRIMARY_KEYS = ("matter_ref", "person_ref")
_INDEXES = ()
_INDEXES = (
IndexedFieldSet(
(
IndexedField(name="person_ref", order=Order.ASCENDING),
IndexedField(name="matter_ref", order=Order.ASCENDING),
)
),
)


class MinutesItem(Model):
Expand Down

0 comments on commit 1127f74

Please sign in to comment.