Skip to content

Commit

Permalink
increase data model readability
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Nov 8, 2024
1 parent 2742394 commit 8dc0394
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions aggrec/db_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ class AggregateType(Enum):


class AggregateMetadata(Document):
meta = {
"collection": "aggregates",
"indexes": [{"fields": ["content_digest"], "unique": True, "sparse": True}],
}
meta = {"collection": "aggregates"}

creator = StringField()

Expand All @@ -22,7 +19,7 @@ class AggregateMetadata(Document):

content_type = StringField()
content_length = IntField()
content_digest = StringField()
content_digest = StringField(unique=True, sparse=True)

s3_bucket = StringField()
s3_object_key = StringField()
Expand Down

0 comments on commit 8dc0394

Please sign in to comment.