Skip to content

Instantly share code, notes, and snippets.

@kmjones1979
Created September 6, 2023 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmjones1979/9d58772005671093567233d0063d5d69 to your computer and use it in GitHub Desktop.
Save kmjones1979/9d58772005671093567233d0063d5d69 to your computer and use it in GitHub Desktop.
derivedFrom schema
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