master
Aevann1 2021-07-25 01:30:57 +02:00
parent 0c5b188c8f
commit 66d4e1974d
1 changed files with 2 additions and 0 deletions

View File

@ -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)