model upgrade

This commit is contained in:
2021-08-20 11:08:32 +03:00
parent 94518adcc5
commit ee3b186ba1
8 changed files with 85 additions and 38 deletions

View File

@@ -178,7 +178,9 @@ type Message {
type Shout {
org_id: Int!
slug: String!
author: Int!
authors: [Int!]!
cover: String
layout: String
body: String!
createdAt: DateTime!
updatedAt: DateTime!
@@ -186,7 +188,8 @@ type Shout {
deletedBy: Int
rating: Int
ratigns: [Rating]
published: DateTime # if there is no published field - it is not published
published: Boolean!
publishedAt: DateTime # if there is no published field - it is not published
replyTo: String # another shout
tags: [String] # actual values
topics: [String] # topic-slugs, order has matter
@@ -202,6 +205,7 @@ type Topic {
createdBy: Int! # User
createdAt: DateTime!
value: String
desc: String
parents: [String] # NOTE: topic can have parent topics
children: [String] # and children
}