added column created_timestampz to CommentFlag model
This commit is contained in:
parent
9a93463cf6
commit
aa6882506d
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class CommentFlag(CreatedBase):
|
||||||
comment_id = Column(Integer, ForeignKey("comments.id"), nullable=False)
|
comment_id = Column(Integer, ForeignKey("comments.id"), nullable=False)
|
||||||
user_id = Column(Integer, ForeignKey("users.id"), nullable=False)
|
user_id = Column(Integer, ForeignKey("users.id"), nullable=False)
|
||||||
reason = Column(String)
|
reason = Column(String)
|
||||||
|
created_timestampz = Column(TIMESTAMP(timezone=True), nullable=False, server_default=text("now()"))
|
||||||
|
|
||||||
Index('cflag_user_idx', user_id)
|
Index('cflag_user_idx', user_id)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue