Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/finish-db-models #7

Merged
merged 15 commits into from
Nov 7, 2020
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
JacksonMaxfield committed Nov 6, 2020
commit 5e0cb68042291dd5848265f66ffc7a2be3972d0b
12 changes: 8 additions & 4 deletions cdp_backend/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,16 @@ def Example(cls):
_PRIMARY_KEYS = ("matter_ref", "status", "update_datetime")
_INDEXES = (
IndexedFieldSet(
IndexedField(name="matter_ref", order=Order.ASCENDING),
IndexedField(name="update_datetime", order=Order.ASCENDING),
(
IndexedField(name="matter_ref", order=Order.ASCENDING),
IndexedField(name="update_datetime", order=Order.ASCENDING),
),
),
IndexedFieldSet(
IndexedField(name="matter_ref", order=Order.ASCENDING),
IndexedField(name="update_datetime", order=Order.DESCENDING),
(
IndexedField(name="matter_ref", order=Order.ASCENDING),
IndexedField(name="update_datetime", order=Order.DESCENDING),
),
),
)

Expand Down