-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
61 lines (56 loc) · 1.35 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
type GroupInfo @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
name: String! # string
desc: String! # string
icon: String! # string
privacy: Int! # uint8
asset: Bytes! # address
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type JoinRequested @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
identityCommitment: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type MemberAdded @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
identityCommitment: BigInt! # uint256
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type PollAdded @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
pollId: BigInt! # uint256
title: String! # string
voteMsgs: [String!]! # string[]
desc: String! # string
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type PoolVoteAdded @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
poolId: BigInt! # uint256
voteMsg: String! # string
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}
type VoteAdded @entity(immutable: true) {
id: Bytes!
groupId: BigInt! # uint256
voteMsg: Bytes! # bytes32
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: Bytes!
}