Store Wikidata entity JSON with depicts item

This commit is contained in:
Edward Betts 2019-11-07 10:16:44 +00:00
parent 09b4b47b8d
commit 92040bcc9f

View file

@ -26,6 +26,7 @@ class DepictsItem(Base):
description = Column(String)
commons = Column(String)
count = Column(Integer)
entity = Column(postgresql.JSON)
qid = column_property('Q' + cast(item_id, String))
db_alt_labels = relationship('DepictsItemAltLabel',
collection_class=set,