Showing
1 changed file
with
11 additions
and
13 deletions
... | @@ -8,36 +8,34 @@ type User { | ... | @@ -8,36 +8,34 @@ type User { |
8 | emailSecret: String | 8 | emailSecret: String |
9 | phoneSecret: String | 9 | phoneSecret: String |
10 | bio: String | 10 | bio: String |
11 | - rooms: [Room] | 11 | + groups: [Group] |
12 | - createdAt: String | ||
13 | messages: [Message] | 12 | messages: [Message] |
14 | - sender: [User] | 13 | + directMessages: [DirectMessage] |
15 | - receiver: [User] | 14 | + createdAt: String |
16 | } | 15 | } |
17 | 16 | ||
18 | -type Room { | 17 | +type Group { |
19 | id: ID! | 18 | id: ID! |
20 | name: String! | 19 | name: String! |
21 | participants: [User] | 20 | participants: [User] |
22 | - categories: [Category] | ||
23 | messages: [Message] | 21 | messages: [Message] |
22 | + files: String | ||
23 | + createdAt: String | ||
24 | } | 24 | } |
25 | 25 | ||
26 | -type Category { | 26 | +type DirectMessage { |
27 | id: ID! | 27 | id: ID! |
28 | - name: String | 28 | + text: String! |
29 | - room: Room | 29 | + sender: User! |
30 | - messages: [Message] | 30 | + createdAt: String |
31 | } | 31 | } |
32 | 32 | ||
33 | type Message { | 33 | type Message { |
34 | id: ID! | 34 | id: ID! |
35 | text: String! | 35 | text: String! |
36 | sender: User! | 36 | sender: User! |
37 | - room: Room! | 37 | + group: Group! |
38 | - category: Category | ||
39 | createdAt: String | 38 | createdAt: String |
40 | - updatedAt: String | ||
41 | } | 39 | } |
42 | 40 | ||
43 | type AuthPayload { | 41 | type AuthPayload { | ... | ... |
-
Please register or login to post a comment