forked from MarseyWorld/MarseyWorld
force push
parent
739f873fff
commit
fa7cb304e3
|
@ -61,8 +61,8 @@ class AwardRelationship(Base):
|
|||
id = Column(Integer, primary_key=True)
|
||||
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
submission_id = Column(Integer, ForeignKey("submissions.id"), default=None)
|
||||
comment_id = Column(Integer, ForeignKey("comments.id"), default=None)
|
||||
submission_id = Column(Integer, ForeignKey("submissions.id"))
|
||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||
kind = Column(String(20))
|
||||
|
||||
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", viewonly=True)
|
||||
|
|
|
@ -18,7 +18,7 @@ class CommentAux(Base):
|
|||
|
||||
key_id = Column(Integer, primary_key=True)
|
||||
id = Column(Integer, ForeignKey("comments.id"))
|
||||
body = Column(String(10000), default=None)
|
||||
body = Column(String(10000))
|
||||
body_html = Column(String(20000))
|
||||
ban_reason = Column(String(256), default='')
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ class ModAction(Base):
|
|||
target_user_id = Column(Integer, ForeignKey("users.id"), default=0)
|
||||
target_submission_id = Column(Integer, ForeignKey("submissions.id"), default=0)
|
||||
target_comment_id = Column(Integer, ForeignKey("comments.id"), default=0)
|
||||
_note=Column(String(256), default=None)
|
||||
_note=Column(String(256))
|
||||
created_utc = Column(Integer, default=0)
|
||||
|
||||
user = relationship("User", primaryjoin="User.id==ModAction.user_id", viewonly=True)
|
||||
|
|
Loading…
Reference in New Issue