added column created_timestampz to CommentFlag model

This commit is contained in:
Viet Than 2023-07-09 18:46:36 -04:00
parent 9a93463cf6
commit aa6882506d

View file

@ -31,6 +31,7 @@ class CommentFlag(CreatedBase):
comment_id = Column(Integer, ForeignKey("comments.id"), nullable=False)
user_id = Column(Integer, ForeignKey("users.id"), nullable=False)
reason = Column(String)
created_timestampz = Column(TIMESTAMP(timezone=True), nullable=False, server_default=text("now()"))
Index('cflag_user_idx', user_id)