Skip to content

Commit

Permalink
added bedbase table stats
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Sep 11, 2024
1 parent 8b43a07 commit b8d9ffb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pepdbagent/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,18 @@ class TarNamespace(Base):
file_size: Mapped[int] = mapped_column(nullable=False)


class BedBaseStats(Base):
__tablename__ = "bedbase_stats"

id: Mapped[int] = mapped_column(primary_key=True)
gse: Mapped[str] = mapped_column()
gsm: Mapped[str] = mapped_column()
sample_name: Mapped[str] = mapped_column(nullable=True)
genome: Mapped[Optional[str]] = mapped_column(nullable=True, default="")
last_update_date: Mapped[Optional[str]] = mapped_column()
submission_date: Mapped[Optional[str]] = mapped_column()


class BaseEngine:
"""
A class with base methods, that are used in several classes. e.g. fetch_one or fetch_all
Expand Down

0 comments on commit b8d9ffb

Please sign in to comment.