-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathschema.graphql
88 lines (83 loc) · 2.23 KB
/
schema.graphql
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
type ProjectAttestation @entity {
"UID of the attestation"
id: ID!
recipient: String!
vouch: Boolean!
txHash: String!
attestorOrganisation: AttestorOrganisation!
project: Project!
attestTimestamp: DateTime!
comment: String
}
type AttestorOrganisation @entity {
"UID of the attestation made the relationship"
id: ID!
attestor: Attestor!
organisation: Organisation!
"Timestamp at which the relationship was created"
attestTimestamp: DateTime!
}
type Attestor @entity {
"Attestor ID - account address"
id: ID!
"Attestor Organization"
organizations: [AttestorOrganisation!]! @derivedFrom(field: "attestor")
}
type Organisation @entity {
"Organization schema UID"
id: ID!
"Organization Name"
name: String! @index @unique
"Issuing authority address"
issuer: String!
"Color of the organization"
color: String
"The first attestation block number"
startBlock: Int
"Organization Attestors"
attestors: [AttestorOrganisation!]! @derivedFrom(field: "organisation")
attestedProjects: [OrganisationProject!]! @derivedFrom(field: "organisation")
}
type Project @entity {
"Project Source and Project ID separated by a hyphen"
id: ID!
"Source of the project"
source: String! @index
"Project ID. Unique within the source"
projectId: String! @index
"Title of the project"
title: String
"Description of the project"
description: String
"Html format of description"
descriptionHtml: String
"Description summary in text"
descriptionSummary: String
"Total attests with value True"
totalVouches: Int!
"Total attests with value False"
totalFlags: Int!
"Total attests"
totalAttests: Int!
"Url of the project"
url: String
"Image of the project"
image: String
"project data is imported from a source or not"
imported: Boolean! @index
lastUpdatedTimestamp: DateTime!
attests: [ProjectAttestation!]! @derivedFrom(field: "project")
attestedOrganisations: [OrganisationProject!]! @derivedFrom(field: "project")
"Rounds in which the project is included"
rfRounds: [Int!]
"Source Creation Timestamp"
sourceCreatedAt: DateTime
}
type OrganisationProject @entity {
"<project>-<organisation>"
id: ID!
organisation: Organisation!
project: Project!
vouch: Boolean!
count: Int!
}