Skip to content

Commit

Permalink
feature/add-matter-ref-person-ref-vote-index (#173)
Browse files Browse the repository at this point in the history
* Add matter_ref and person_ref comp vote index

* Add the other order indexes
  • Loading branch information
Jackson Maxfield Brown committed Mar 9, 2022
1 parent 8d99af6 commit bb012da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions cdp_backend/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,24 @@ def Example(cls) -> Model:
IndexedField(name="person_ref", order=Order.ASCENDING),
)
),
IndexedFieldSet(
(
IndexedField(name="matter_ref", order=Order.ASCENDING),
IndexedField(name="person_ref", order=Order.ASCENDING),
)
),
IndexedFieldSet(
(
IndexedField(name="person_ref", order=Order.ASCENDING),
IndexedField(name="event_ref", order=Order.ASCENDING),
)
),
IndexedFieldSet(
(
IndexedField(name="person_ref", order=Order.ASCENDING),
IndexedField(name="matter_ref", order=Order.ASCENDING),
)
),
)


Expand Down

0 comments on commit bb012da

Please sign in to comment.