draft-community
All checks were successful
Deploy on push / deploy (push) Successful in 47s

This commit is contained in:
2025-04-14 16:02:19 +03:00
parent 1c61e889d6
commit 0de4404cb1
3 changed files with 4 additions and 3 deletions

View File

@@ -31,7 +31,8 @@ class Draft(Base):
# required
created_at: int = Column(Integer, nullable=False, default=lambda: int(time.time()))
created_by: int = Column(ForeignKey("author.id"), nullable=False)
community: int = Column(ForeignKey("community.id"), nullable=False, default=1)
# optional
layout: str = Column(String, nullable=True, default="article")
slug: str = Column(String, unique=True)