-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
63 lines (59 loc) · 1.38 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
type Collection @entity {
id: ID! @index # uuid
contract: String! @index
createdAt: DateTime! @index
slug: String! @index @unique
# objekt fields
collectionId: String!
season: String! @index
member: String! @index
artist: String! @index
collectionNo: String! @index
class: String! @index
thumbnailImage: String!
frontImage: String!
backImage: String!
backgroundColor: String!
textColor: String!
accentColor: String!
comoAmount: Int!
onOffline: String! @index
transfers: [Transfer!] @derivedFrom(field: "collection")
objekts: [Objekt!] @derivedFrom(field: "collection")
}
type Transfer @entity {
id: ID! @index # uuid
from: String! @index
to: String! @index
createdAt: DateTime! @index
tokenId: String!
hash: String!
objekt: Objekt!
collection: Collection!
}
type Objekt @entity {
id: ID! @index # tokenId
owner: String! @index
mintedAt: DateTime!
receivedAt: DateTime! @index
serial: Int! @index
transferable: Boolean! @index
transfers: [Transfer!] @derivedFrom(field: "objekt")
collection: Collection!
}
type ComoBalance @entity {
id: ID! # uuid
contract: String! @index
owner: String! @index
amount: Int! @index
}
type Vote @entity {
id: ID! # uuid
from: String! @index
createdAt: DateTime! @index
contract: String! @index
pollId: Int! @index
candidateId: Int @index
index: Int! @index
amount: Int! @index
}