2019-08-07 21:21:13 +00:00
|
|
|
type Profile @entity {
|
|
|
|
id: ID!
|
|
|
|
addr: Bytes!
|
|
|
|
canceled: Boolean!
|
|
|
|
commitTime: BigInt!
|
|
|
|
type: String!
|
|
|
|
url: String!
|
|
|
|
name: String!
|
|
|
|
profileId: BigInt!
|
2019-08-17 13:37:09 +00:00
|
|
|
creationTime: BigInt!
|
|
|
|
pledgesInfos: [PledgesInfo]! @derivedFrom(field: "profileRef")
|
|
|
|
pledges: [Pledge]! @derivedFrom(field: "owner")
|
|
|
|
projectInfo: ProjectInfo
|
2019-08-10 17:12:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type PledgesInfo @entity {
|
|
|
|
id: ID! # id is unique on profile + token
|
|
|
|
profile: String!
|
|
|
|
token: String!
|
|
|
|
lifetimeReceived: BigInt!
|
|
|
|
balance: BigInt!
|
2019-08-17 13:37:09 +00:00
|
|
|
profileRef: Profile!
|
2019-08-15 15:28:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Pledge @entity {
|
|
|
|
id: ID!
|
2019-08-17 13:37:09 +00:00
|
|
|
owner: Profile
|
2019-08-15 15:28:26 +00:00
|
|
|
amount: BigInt!
|
|
|
|
token: String!
|
|
|
|
commitTime: BigInt!
|
|
|
|
nDelegates: BigInt!
|
|
|
|
intendedProject: BigInt!
|
|
|
|
pledgeState: Int!
|
2019-09-30 15:51:44 +00:00
|
|
|
creationTime: BigInt!
|
2019-11-01 20:10:42 +00:00
|
|
|
oldPledge: Pledge
|
2019-11-25 19:58:04 +00:00
|
|
|
creatorAddr: Bytes!
|
2019-08-17 13:37:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectInfo @entity {
|
|
|
|
id: ID!
|
|
|
|
profile: Profile
|
|
|
|
title: String
|
|
|
|
subtitle: String
|
|
|
|
creator: String
|
|
|
|
repo: String
|
|
|
|
avatar: String
|
|
|
|
goal: String
|
|
|
|
goalToken: String
|
|
|
|
description: String
|
|
|
|
chatRoom: String
|
|
|
|
isPlaying: Boolean
|
|
|
|
type: String
|
|
|
|
file: String
|
2019-08-07 21:21:13 +00:00
|
|
|
}
|