emptybody-fix
All checks were successful
deploy / deploy (push) Successful in 2m12s

This commit is contained in:
2023-11-27 21:03:59 +03:00
parent 3b0aedf959
commit 5f8ec549df
6 changed files with 7 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ class ReactionKind(Enumeration):
class Reaction(Base):
__tablename__ = "reaction"
body = Column(String, nullable=True, comment="Reaction Body")
body = Column(String, default='', comment="Reaction Body")
created_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
created_by = Column(ForeignKey("author.id"), nullable=False, index=True)
updated_at = Column(Integer, nullable=True, comment="Updated at")