-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.graphcool
50 lines (45 loc) · 978 Bytes
/
project.graphcool
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# project: cj2zz9749o8nx01903zclb1lv
# version: 2
type File implements Node {
contentType: String!
createdAt: DateTime!
id: ID! @isUnique
name: String!
secret: String! @isUnique
size: Int!
updatedAt: DateTime!
url: String! @isUnique
}
type Question implements Node {
body: String!
createdAt: DateTime!
flagged: Boolean
id: ID! @isUnique
updatedAt: DateTime!
user: User @relation(name: "UserOnQuestion")
votes: [Vote!]! @relation(name: "VoteOnQuestion")
}
type User implements Node {
auth0UserId: String @isUnique
createdAt: DateTime!
flagged: Boolean
id: ID! @isUnique
name: String
pictureUrl: String
questions: [Question!]! @relation(name: "UserOnQuestion")
role: USER_ROLE
updatedAt: DateTime!
username: String
}
type Vote implements Node {
createdAt: DateTime!
id: ID! @isUnique
question: Question @relation(name: "VoteOnQuestion")
updatedAt: DateTime!
}
enum USER_ROLE {
Admin
Organiser
Moderator
User
}