remove shout id
This commit is contained in:
parent
7d26948cc1
commit
88cb8eb9ce
|
@ -315,9 +315,9 @@ class CommentStat:
|
||||||
class Shout(Base):
|
class Shout(Base):
|
||||||
__tablename__ = 'shout'
|
__tablename__ = 'shout'
|
||||||
|
|
||||||
# id = None
|
id = None
|
||||||
|
|
||||||
slug: str = Column(String, nullable=True, unique=True)
|
slug: str = Column(String, primary_key=True)
|
||||||
community: int = Column(Integer, ForeignKey("community.id"), nullable=False, comment="Community")
|
community: int = Column(Integer, ForeignKey("community.id"), nullable=False, comment="Community")
|
||||||
body: str = Column(String, nullable=False, comment="Body")
|
body: str = Column(String, nullable=False, comment="Body")
|
||||||
createdAt: str = Column(DateTime, nullable=False, default = datetime.now, comment="Created at")
|
createdAt: str = Column(DateTime, nullable=False, default = datetime.now, comment="Created at")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user