-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
executable file
·56 lines (50 loc) · 1.12 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
type HostCreatedEntity @entity {
id: ID!
count: BigInt!
_hostAddress: String! # address
name: String! # string
image: String! # string
bio: String! # string
socialLinks: String! # string
}
type TicketBoughtEntity @entity {
id: ID!
count: BigInt!
ticketID: BigInt!
childContract: ChildCreatedEntity
buyer: User! # User
timestamp: Int!
# ticketID: BigInt! # bigint
}
type ChildCreatedEntity @entity {
id: ID!
count: BigInt!
title: String! # string
fee: BigInt! # uint256
seats: BigInt! # uint256
image: String! # string
eventHost: String! # string
description: String! # string
link: String! # string
date: String! # string
venue: String! # string
ticketsBought: [TicketBoughtEntity!]! # TicketBoughtEntity
childAddress: String! # string
category: String! # string
# user: User! # User
buyers: [User!]!
}
type FeaturedEntity @entity {
id: ID!
count: BigInt!
event: ChildCreatedEntity
}
type User @entity {
id: ID!
tickets: [TicketBoughtEntity!]! @derivedFrom(field: "buyer")
}
type UpdatedLink @entity {
id: ID!
link: String! # string
childContract: ChildCreatedEntity
}