This commit is contained in:
2023-01-13 14:04:45 +03:00
committed by bniwredyc
parent 6d59916804
commit 3875ac5d4e
5 changed files with 122 additions and 80 deletions

View File

@@ -50,7 +50,7 @@ class Shout(Base):
subtitle = Column(String, nullable=True)
layout = Column(String, nullable=True)
mainTopic = Column(ForeignKey("topic.slug"), nullable=True)
cover = Column(String, nullable=True)
cover = Column(String, nullable=True, comment="Cover")
authors = relationship(lambda: User, secondary=ShoutAuthor.__tablename__)
topics = relationship(lambda: Topic, secondary=ShoutTopic.__tablename__)
reactions = relationship(lambda: Reaction)