shout under organization
This commit is contained in:
@@ -9,9 +9,17 @@ from orm.base import Base
|
||||
class Shout(Base):
|
||||
__tablename__ = 'shout'
|
||||
|
||||
id = None
|
||||
|
||||
slug: str = Column(String, primary_key=True)
|
||||
org: str = Column(String, nullable=False)
|
||||
author_id: str = Column(ForeignKey("user.id"), nullable=False, comment="Author")
|
||||
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")
|
||||
replyTo: str = Column(ForeignKey("shout.slug"), nullable=True)
|
||||
versionOf: str = Column(ForeignKey("shout.slug"), nullable=True)
|
||||
tags: str = Column(String, nullable=True)
|
||||
topics: str = Column(String, nullable=True)
|
||||
|
||||
# TODO: add all the fields
|
||||
|
Reference in New Issue
Block a user