shout with id for candidates
This commit is contained in:
parent
47326069b1
commit
9a685590fb
|
@ -315,7 +315,7 @@ class CommentStat:
|
||||||
class Shout(Base):
|
class Shout(Base):
|
||||||
__tablename__ = 'shout'
|
__tablename__ = 'shout'
|
||||||
|
|
||||||
id = None
|
# id = None
|
||||||
|
|
||||||
slug: str = Column(String, primary_key=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")
|
||||||
|
|
|
@ -269,13 +269,13 @@ type User {
|
||||||
|
|
||||||
type Comment {
|
type Comment {
|
||||||
id: Int!
|
id: Int!
|
||||||
|
shout: Int!
|
||||||
author: User!
|
author: User!
|
||||||
body: String!
|
body: String!
|
||||||
replyTo: Int
|
replyTo: Int
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
updatedBy: Int
|
updatedBy: Int
|
||||||
shout: Int!
|
|
||||||
deletedAt: DateTime
|
deletedAt: DateTime
|
||||||
deletedBy: Int
|
deletedBy: Int
|
||||||
ratings: [CommentRating]
|
ratings: [CommentRating]
|
||||||
|
@ -294,6 +294,7 @@ type CommentRating {
|
||||||
|
|
||||||
# is publication
|
# is publication
|
||||||
type Shout {
|
type Shout {
|
||||||
|
id: Int!
|
||||||
slug: String!
|
slug: String!
|
||||||
body: String!
|
body: String!
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user