Skip to content

Commit

Permalink
WIP #81
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Feb 28, 2024
1 parent e53c797 commit 64a1c32
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion storage/models/references.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@ class References(Base):

id: Mapped[int] = mapped_column(primary_key=True)
doi: Mapped[str]
# TODO uncomment when ready
# title: Mapped[str]
# date: Mapped[str]
# journal: Mapped[int]

__table_args__ = (
# TODO add other fields
Index("reference_doi", "doi"),
Index("reference_id", "id"),
# Index("reference_title", "title"),
# Index("reference_date", "date"),
# Index("reference_journal", "journal"),
)

def __repr__(self):
return f"References(id={self.id}, doi={self.doi})"
# return f"References(id={self.id}, doi={self.doi}, title={self.title}, date={self.date}, journal={self.journal})"

0 comments on commit 64a1c32

Please sign in to comment.