model changes
This commit is contained in:
@@ -8,8 +8,8 @@ class CommunityFollower(Base):
|
||||
__tablename__ = "community_followers"
|
||||
|
||||
id = None # type: ignore
|
||||
follower = Column(ForeignKey("user.slug"), primary_key=True)
|
||||
community = Column(ForeignKey("community.slug"), primary_key=True)
|
||||
follower_id = Column(ForeignKey("user.id"), primary_key=True)
|
||||
community_id = Column(ForeignKey("community.id"), primary_key=True)
|
||||
joinedAt = Column(
|
||||
DateTime, nullable=False, default=datetime.now, comment="Created at"
|
||||
)
|
||||
|
Reference in New Issue
Block a user