This commit is contained in:
parent
d0ce4dd3d3
commit
cd0ba88462
|
@ -11,7 +11,7 @@ class CommunityAuthor(Base):
|
||||||
__tablename__ = "community_author"
|
__tablename__ = "community_author"
|
||||||
|
|
||||||
id = None # type: ignore
|
id = None # type: ignore
|
||||||
follower = Column(ForeignKey("author.id"), primary_key=True)
|
author = Column(ForeignKey("author.id"), primary_key=True)
|
||||||
community = Column(ForeignKey("community.id"), primary_key=True)
|
community = Column(ForeignKey("community.id"), primary_key=True)
|
||||||
joined_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
|
joined_at = Column(Integer, nullable=False, default=lambda: int(time.time()))
|
||||||
role = Column(String, nullable=False)
|
role = Column(String, nullable=False)
|
||||||
|
|
|
@ -77,8 +77,9 @@ type Author {
|
||||||
last_seen: Int
|
last_seen: Int
|
||||||
updated_at: Int
|
updated_at: Int
|
||||||
deleted_at: Int
|
deleted_at: Int
|
||||||
# ratings
|
# synthetic
|
||||||
stat: AuthorStat # synthetic
|
stat: AuthorStat # ratings inside
|
||||||
|
communities: [Community]
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReactionUpdating {
|
type ReactionUpdating {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user