fdsfd
This commit is contained in:
parent
dd4fb5b411
commit
872b1b11eb
8 changed files with 13 additions and 14 deletions
|
@ -13,7 +13,7 @@ class Vote(Base):
|
|||
vote_type = Column(Integer)
|
||||
submission_id = Column(Integer, ForeignKey("submissions.id"))
|
||||
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
|
||||
real = Column(Boolean)
|
||||
real = Column(Boolean, default=True)
|
||||
|
||||
user = relationship("User", lazy="subquery", viewonly=True)
|
||||
post = relationship("Submission", lazy="subquery", viewonly=True)
|
||||
|
@ -54,7 +54,7 @@ class CommentVote(Base):
|
|||
vote_type = Column(Integer)
|
||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||
app_id = Column(Integer, ForeignKey("oauth_apps.id"))
|
||||
real = Column(Boolean)
|
||||
real = Column(Boolean, default=True)
|
||||
|
||||
user = relationship("User", lazy="subquery", viewonly=True)
|
||||
comment = relationship("Comment", lazy="subquery", viewonly=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue