[api] remarks & drafts/collabs + migrations

This commit is contained in:
2023-01-17 12:11:18 +03:00
parent 6339a06b71
commit b966ce6c24
6 changed files with 35 additions and 35 deletions

View File

@@ -8,8 +8,8 @@ from base.orm import Base
class Remark(Base):
tablename = "remark"
__tablename__ = "remark"
slug = Column(String, unique=True, nullable=False)
body = Column(String, nullable=False)
desc = Column(String, default='')
shout = Column(ForeignKey("shout.id"), nullable=True, index=True, comment="Shout")