From 437be2229bfb6a4e84662b9b6922eaa2bb468b05 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 28 Jul 2021 20:29:51 +0300 Subject: [PATCH] schema updated --- schema.graphql | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/schema.graphql b/schema.graphql index 3aaba6dc..c0553e8a 100644 --- a/schema.graphql +++ b/schema.graphql @@ -113,8 +113,8 @@ type Subscription { ############################################ Entities type Role { - id: Int! name: String! + desc: String } type User { @@ -142,25 +142,25 @@ type Message { visibleForUsers: [Int] } - # is publication type Shout { - id: Int! # TODO: replace with string? slugs-like-this - slug: String + id: Int! + org: String! + slug: String! author: Int! body: String! createdAt: DateTime! + updatedAt: DateTime! deletedAt: DateTime deletedBy: Int rating: Int - published: DateTime! # if there is no published field - it is not published + published: DateTime # if there is no published field - it is not published replyTo: Int # another shout tags: [String] # actual values - topics: [String] # topics-slugs + topics: [String] # topic-slugs title: String - updatedAt: DateTime! versionOf: Int - visibleForRoles: [Role]! + visibleForRoles: [String]! # role ids are strings visibleForUsers: [Int] }