dfg
This commit is contained in:
parent
010da2b36b
commit
abf8f981eb
3 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ class Comment(Base):
|
|||
over_18 = Column(Boolean, default=False)
|
||||
is_bot = Column(Boolean, default=False)
|
||||
is_pinned = Column(String(25))
|
||||
sentto=Column(Integer)
|
||||
sentto=Column(Integer, ForeignKey("users.id"))
|
||||
notifiedto=Column(Integer)
|
||||
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
|
||||
oauth_app = relationship("OauthApp", viewonly=True)
|
||||
|
@ -47,6 +47,7 @@ class Comment(Base):
|
|||
post = relationship("Submission", viewonly=True)
|
||||
flags = relationship("CommentFlag", lazy="dynamic", viewonly=True)
|
||||
author = relationship("User", primaryjoin="User.id==Comment.author_id")
|
||||
sendtouser = relationship("User", primaryjoin="User.id==Comment.sentto")
|
||||
parent_comment = relationship("Comment", remote_side=[id], viewonly=True)
|
||||
child_comments = relationship("Comment", remote_side=[parent_comment_id], viewonly=True)
|
||||
awards = relationship("AwardRelationship", viewonly=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue