model-index-slug
All checks were successful
Deploy to core / deploy (push) Successful in 1m39s

This commit is contained in:
2024-02-19 13:25:47 +03:00
parent 8193bd0178
commit b89060f15f
6 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ class TopicFollower(Base):
class Topic(Base):
__tablename__ = 'topic'
slug = Column(String, unique=True)
slug = Column(String, unique=True, index=True)
title = Column(String, nullable=False, comment='Title')
body = Column(String, nullable=True, comment='Body')
pic = Column(String, nullable=True, comment='Picture')