Adding usernotes.

This commit is contained in:
Michael House 2022-05-16 11:53:24 -05:00 committed by GitHub
parent 957edab4dc
commit 19903cccb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 484 additions and 10 deletions

View file

@ -59,6 +59,7 @@ class Submission(Base):
reports = relationship("Flag", viewonly=True)
comments = relationship("Comment", primaryjoin="Comment.parent_submission==Submission.id")
subr = relationship("Sub", primaryjoin="foreign(Submission.sub)==remote(Sub.name)", viewonly=True)
notes = relationship("UserNote", back_populates="post")
bump_utc = deferred(Column(Integer, server_default=FetchedValue()))