diff --git a/ocd_backend/models/postgres_models.py b/ocd_backend/models/postgres_models.py index 0121f3e8..7f94ba43 100644 --- a/ocd_backend/models/postgres_models.py +++ b/ocd_backend/models/postgres_models.py @@ -9,6 +9,13 @@ Base = declarative_base() +class ItemHash(Base): + __tablename__ = 'item_hash' + + id = Column(BigInteger, Sequence('source_id_seq'), primary_key=True, index=True) + item_id = Column(String, nullable=False, index=True, unique=True) + item_hash = Column(String, nullable=False) + class Source(Base): __tablename__ = 'source'