This commit is contained in:
parent
fcd6a2778b
commit
12ad685b31
|
@ -29,7 +29,7 @@ class ReactionKind(Enumeration):
|
||||||
class Reaction(Base):
|
class Reaction(Base):
|
||||||
__tablename__ = "reaction"
|
__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_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
|
||||||
created_by = Column(ForeignKey("author.id"), nullable=False, index=True)
|
created_by = Column(ForeignKey("author.id"), nullable=False, index=True)
|
||||||
updated_at = Column(Integer, nullable=True, comment="Updated at")
|
updated_at = Column(Integer, nullable=True, comment="Updated at")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user