Created
September 6, 2023 00:08
-
-
Save kmjones1979/9d58772005671093567233d0063d5d69 to your computer and use it in GitHub Desktop.
derivedFrom schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type PostCreated @entity(immutable: true) { | |
id: Bytes! | |
ownerId: BigInt! | |
contentURI: String! | |
timestamp: BigInt! | |
} | |
type PostContent @entity(immutable: true) { | |
id: Bytes! | |
hash: String! | |
content: String! | |
} | |
type Profile @entity { | |
id: ID! | |
profileId: BigInt! | |
creator: Bytes! | |
to: Bytes! | |
handle: String! | |
imageURI: String! | |
followModule: Bytes! | |
followModuleReturnData: Bytes! | |
followNFTURI: String! | |
timestamp: BigInt! | |
profileMetadata: [ProfileMetadata!]! @derivedFrom(field: "profile") | |
} | |
type ProfileMetadata @entity { | |
id: ID! | |
name: String! | |
description: String! | |
animation_url: String! | |
image: String! | |
profile: Profile! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment