-
Notifications
You must be signed in to change notification settings - Fork 4
/
schema.graphql
63 lines (47 loc) · 938 Bytes
/
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 User @entity {
" Equals to: <accountAddress>"
id: ID!
" Token balances that this account holds "
mlo: BigInt
fe: BigInt
al: BigInt
cu: BigInt
au: BigInt
ti: BigInt
lastclaimed: BigInt
flows: [BigInt!]
" Lands "
lands: [Land!] @derivedFrom(field: "owner")
" Factories "
factories: [Factory!] @derivedFrom(field: "owner")
}
type Land @entity {
" Equals to: <x>-<y> "
id: ID!
" X Co-Ordinate "
x: Int!
" Y Co-Ordinate "
y: Int!
" Owner of Land "
owner: User!
" Factory on top "
factory: Factory
" Seed "
seed: BigInt!
}
type Factory @entity {
" Equals to factory_id "
id: ID!
" Owner of Factory "
owner: User!
" Factory Type "
type: Int!
" Efficiency "
efficiency: Int!
" X Co-Ordinate "
x: Int
" Y Co-Ordinate "
y: Int
" Name of Factory "
name: String!
}