shout with id for candidates
This commit is contained in:
@@ -315,7 +315,7 @@ class CommentStat:
|
||||
class Shout(Base):
|
||||
__tablename__ = 'shout'
|
||||
|
||||
id = None
|
||||
# id = None
|
||||
|
||||
slug: str = Column(String, primary_key=True)
|
||||
community: int = Column(Integer, ForeignKey("community.id"), nullable=False, comment="Community")
|
||||
|
||||
@@ -269,13 +269,13 @@ type User {
|
||||
|
||||
type Comment {
|
||||
id: Int!
|
||||
shout: Int!
|
||||
author: User!
|
||||
body: String!
|
||||
replyTo: Int
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime
|
||||
updatedBy: Int
|
||||
shout: Int!
|
||||
deletedAt: DateTime
|
||||
deletedBy: Int
|
||||
ratings: [CommentRating]
|
||||
@@ -294,6 +294,7 @@ type CommentRating {
|
||||
|
||||
# is publication
|
||||
type Shout {
|
||||
id: Int!
|
||||
slug: String!
|
||||
body: String!
|
||||
createdAt: DateTime!
|
||||
|
||||
Reference in New Issue
Block a user