schema updated

This commit is contained in:
Untone 2021-07-28 20:29:51 +03:00
parent 2f85df3c01
commit 437be2229b

View File

@ -113,8 +113,8 @@ type Subscription {
############################################ Entities ############################################ Entities
type Role { type Role {
id: Int!
name: String! name: String!
desc: String
} }
type User { type User {
@ -142,25 +142,25 @@ type Message {
visibleForUsers: [Int] visibleForUsers: [Int]
} }
# is publication # is publication
type Shout { type Shout {
id: Int! # TODO: replace with string? slugs-like-this id: Int!
slug: String org: String!
slug: String!
author: Int! author: Int!
body: String! body: String!
createdAt: DateTime! createdAt: DateTime!
updatedAt: DateTime!
deletedAt: DateTime deletedAt: DateTime
deletedBy: Int deletedBy: Int
rating: 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 replyTo: Int # another shout
tags: [String] # actual values tags: [String] # actual values
topics: [String] # topics-slugs topics: [String] # topic-slugs
title: String title: String
updatedAt: DateTime!
versionOf: Int versionOf: Int
visibleForRoles: [Role]! visibleForRoles: [String]! # role ids are strings
visibleForUsers: [Int] visibleForUsers: [Int]
} }