community added, like removed

This commit is contained in:
2021-08-27 00:14:20 +03:00
parent b1dd4c52b5
commit 85f697addd
7 changed files with 46 additions and 46 deletions

View File

@@ -31,7 +31,7 @@ class Shout(Base):
# NOTE: automatic ID here
slug: str = Column(String, nullable=False, unique=True)
org_id: int = Column(Integer, ForeignKey("organization.id"), nullable=False, comment="Organization")
community: int = Column(Integer, ForeignKey("community.id"), nullable=True, comment="Community")
body: str = Column(String, nullable=False, comment="Body")
createdAt: str = Column(DateTime, nullable=False, default = datetime.now, comment="Created at")
updatedAt: str = Column(DateTime, nullable=True, comment="Updated at")