forked from MarseyWorld/MarseyWorld
master
parent
0c5b188c8f
commit
66d4e1974d
|
@ -10,6 +10,7 @@ class Flag(Base, Stndrd):
|
|||
id = Column(Integer, primary_key=True)
|
||||
post_id = Column(Integer, ForeignKey("submissions.id"))
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
reason = Column(String(100), default=None)
|
||||
created_utc = Column(Integer)
|
||||
|
||||
user = relationship("User", lazy = "joined", primaryjoin = "Flag.user_id == User.id", uselist = False)
|
||||
|
@ -26,6 +27,7 @@ class CommentFlag(Base, Stndrd):
|
|||
id = Column(Integer, primary_key=True)
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||
reason = Column(String(100), default=None)
|
||||
created_utc = Column(Integer)
|
||||
|
||||
user = relationship("User", lazy = "joined", primaryjoin = "CommentFlag.user_id == User.id", uselist = False)
|
||||
|
|
Loading…
Reference in New Issue