This commit is contained in:
Aevann1 2021-10-07 00:38:15 +02:00
parent d8458b4742
commit 1e8b636da0
10 changed files with 69 additions and 69 deletions

View file

@ -33,16 +33,16 @@ class Comment(Base):
parent_comment_id = Column(Integer, ForeignKey("comments.id"))
over_18 = Column(Boolean, default=False)
is_bot = Column(Boolean, default=False)
is_pinned = Column(String(25))
is_pinned = Column(String)
sentto=Column(Integer, ForeignKey("users.id"))
notifiedto=Column(Integer)
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
oauth_app = relationship("OauthApp", viewonly=True)
upvotes = Column(Integer, default=0)
downvotes = Column(Integer, default=0)
body = deferred(Column(String(10000)))
body_html = deferred(Column(String(20000)))
ban_reason = Column(String(256))
body = deferred(Column(String))
body_html = deferred(Column(String))
ban_reason = Column(String)
post = relationship("Submission", viewonly=True)
flags = relationship("CommentFlag", lazy="dynamic", viewonly=True)