schema-fix
All checks were successful
deploy / deploy (push) Successful in 1m18s

This commit is contained in:
Untone 2023-11-27 21:04:48 +03:00
parent fcd6a2778b
commit 12ad685b31

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")