-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
103 lines (96 loc) · 1.89 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
type Nft @entity {
id: ID!
symbol: String!
name: String!
uri: String
metadata: NftMetadata
sender: String!
minter: String
tokens: [NftToken] @derivedFrom(field: "nft")
#owners: [NftTokenOwner] @derivedFrom(field: "nft")
#burns: [NftTokenBurn] @derivedFrom(field: "nft")
blockHeight: BigInt!
txHash: String!
createdAt: Date!
}
type NftToken @entity {
id: ID!
nft: Nft!
tokenId: String!
minter: String!
owner: String!
transfers: [NftTokenTransfer] @derivedFrom(field: "nftToken")
burn: NftTokenBurn @derivedFrom(field: "nftToken")
blockHeight: BigInt!
txHash: String!
createdAt: Date!
updatedAt: Date!
}
type NftTokenTransfer @entity {
id: ID!
nft: Nft!
nftToken: NftToken!
from: String!
to: String!
blockHeight: BigInt!
txHash: String!
createdAt: Date!
}
type NftTokenBurn @entity {
id: ID!
nft: Nft!
nftToken: NftToken!
burner: String!
blockHeight: BigInt!
txHash: String!
createdAt: Date!
}
type NftMetadata @entity {
id: ID!
schema: String
name: String
description: String
image: String
animation_url: String
external_url: String
attributes: [NftAttribute]
bitsong: NftTrackMetadata
}
type NftAttribute @jsonField {
trait_type: String
display_type: String
value: String
}
type NftTrackMetadata @jsonField {
id: String
artwork: String
audio: String
video: String
title: String
titleLocale: String
description: String
artists: [NftTrackEntityDetail]
version: String
genre: String
liveRecording: Boolean
pLine: String
cLine: String
country: String
previousRelease: String
isrc: String
iswc: String
duration: BigInt
license: String
previewStartTime: BigInt
previewDuration: BigInt
lyrics: String
lyricsLocale: String
explicit: String
authors_publishers: [NftTrackEntityDetail]
label: String
}
type NftTrackEntityDetail @jsonField {
address: String
name: String
role: String
}