orm-update2
All checks were successful
Deploy to core / deploy (push) Successful in 1m28s

This commit is contained in:
2024-02-20 11:53:55 +03:00
parent d590884dca
commit a00fe8b8ef
5 changed files with 19 additions and 19 deletions

View File

@@ -9,8 +9,8 @@ class TopicFollower(Base):
__tablename__ = 'topic_followers'
id = None # type: ignore
follower = Column(ForeignKey('author.id'), primary_key=True, index=True)
topic = Column(ForeignKey('topic.id'), primary_key=True, index=True)
follower = Column(ForeignKey('author.id'), primary_key=True)
topic = Column(ForeignKey('topic.id'), primary_key=True)
created_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
auto = Column(Boolean, nullable=False, default=False)