sdy

update graphql model

......@@ -8,36 +8,34 @@ type User {
emailSecret: String
phoneSecret: String
bio: String
rooms: [Room]
createdAt: String
groups: [Group]
messages: [Message]
sender: [User]
receiver: [User]
directMessages: [DirectMessage]
createdAt: String
}
type Room {
type Group {
id: ID!
name: String!
participants: [User]
categories: [Category]
messages: [Message]
files: String
createdAt: String
}
type Category {
type DirectMessage {
id: ID!
name: String
room: Room
messages: [Message]
text: String!
sender: User!
createdAt: String
}
type Message {
id: ID!
text: String!
sender: User!
room: Room!
category: Category
group: Group!
createdAt: String
updatedAt: String
}
type AuthPayload {
......