From 4b860b2c56f95281f6ee2ba50350eb8075df010e Mon Sep 17 00:00:00 2001 From: svskaushik Date: Fri, 27 May 2022 06:06:23 +0530 Subject: [PATCH] extending/adding entities --- schema.graphql | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/schema.graphql b/schema.graphql index c6bbc87..a7e8399 100644 --- a/schema.graphql +++ b/schema.graphql @@ -8,9 +8,11 @@ type Post @entity{ pubId: ID! #publicationId contentURI: String! #content collectModule: Bytes! #collect address + collectModuleReturn: Bytes! #cm init data referenceModule: Bytes! #rm address referenceModuleReturn: Bytes! #abi encoded reference creationTime: Int! #timestamp + comments: [Comment!] @derivedFrom(field: "postPointed") } type Comment @entity{ @@ -19,9 +21,12 @@ type Comment @entity{ contentURI: String! #content profileIdPointed: ID! #pointedId pubIdPointed: ID! #pointed pub + collectModule: Bytes! #cm address + collectModuleReturn: Bytes! #cm init data referenceModule: Bytes! #rm address referenceModuleReturn: Bytes! #abi encoded reference creationTime: Int! #timestamp + postPointed: Post! } type Mirror @entity{ @@ -33,4 +38,41 @@ type Mirror @entity{ referenceModule: Bytes! #rm address referenceModuleReturn: Bytes! #abi encoded reference creationTime: Int! #timestamp +} + +type Profile @entity { + id: ID! #tokenId + creator: Bytes! #address which created the token with given Id + owner: Bytes! # address to which profile Id is minted + handle: String! #handle/username + imageURI: String! #profile picture + followNFTURI: String! #uri set on creation + createdOn: BigInt! #timestamp + followModule: Bytes! #fm address + followModuleReturnData: Bytes! #abi encoded reference + dispatcher: Bytes! +} + +type ProfileCreatorWhitelisted @entity { + id: ID! #creator address + isWhitelisted: Boolean! #creator whitelisted/removed + creationTime: Int! #timestamp +} + +type FollowModuleWhitelist @entity { + id: ID! #module address + isWhitelisted: Boolean! #module created/removed + creationTime: Int! #timestamp +} + +type ReferenceModuleWhitelist @entity { + id: ID! #module address + isWhitelisted: Boolean! #module created/removed + creationTime: Int! #timestamp +} + +type CollectModuleWhitelist @entity { + id: ID! #module address + isWhitelisted: Boolean! #module created/removed + creationTime: Int! #timestamp } \ No newline at end of file