added lead field to shout, new table event (#71)

* added lead field to shout, new table event

* repurposed unused notifications table
This commit is contained in:
Igor Lobanov
2023-08-06 22:01:40 +02:00
committed by GitHub
parent 1fc6178b97
commit b4e14cce93
8 changed files with 13 additions and 40 deletions

View File

@@ -336,19 +336,6 @@ type Rating {
value: Int!
}
type Notification {
kind: String! # unique primary key
template: String!
variables: [String]
}
type UserNotification {
id: Int! # primary key
user: Int!
kind: String! # NotificationTemplate.name
values: [String]
}
type User {
id: Int!
username: String! # to login, ex. email, phone
@@ -367,7 +354,6 @@ type User {
ratings: [Rating]
bio: String
about: String
notifications: [Int]
communities: [Int] # user participating communities
oid: String
}
@@ -417,6 +403,7 @@ type Shout {
id: Int!
slug: String!
body: String!
lead: String
createdAt: DateTime!
topics: [Topic]
mainTopic: String