This repository was archived by the owner on Jan 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
65 lines (61 loc) · 1.42 KB
/
schema.graphql
File metadata and controls
65 lines (61 loc) · 1.42 KB
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
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
bandImageUrl: String
frontMedia: String
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
}