fgdg
This commit is contained in:
parent
d8458b4742
commit
1e8b636da0
10 changed files with 69 additions and 69 deletions
|
@ -11,7 +11,7 @@ class Flag(Base):
|
|||
id = Column(Integer, primary_key=True)
|
||||
post_id = Column(Integer, ForeignKey("submissions.id"))
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
reason = Column(String(100))
|
||||
reason = Column(String)
|
||||
|
||||
user = relationship("User", primaryjoin = "Flag.user_id == User.id", uselist = False, viewonly=True)
|
||||
|
||||
|
@ -37,7 +37,7 @@ class CommentFlag(Base):
|
|||
id = Column(Integer, primary_key=True)
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||
reason = Column(String(100))
|
||||
reason = Column(String)
|
||||
|
||||
user = relationship("User", primaryjoin = "CommentFlag.user_id == User.id", uselist = False, viewonly=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue