channels.graphql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. type Channel @entity {
  2. "Runtime entity identifier (EntityId)"
  3. id: ID!
  4. "Timestamp of the block the channel was created at"
  5. createdAt: DateTime!
  6. "Current member-owner of the channel (if owned by a member)"
  7. ownerMember: Membership
  8. "The title of the Channel"
  9. title: String
  10. "The description of a Channel"
  11. description: String
  12. "Channel's cover (background) photo asset. Recommended ratio: 16:9."
  13. coverPhoto: StorageDataObject
  14. "Channel's avatar photo asset."
  15. avatarPhoto: StorageDataObject
  16. "Flag signaling whether a channel is public."
  17. isPublic: Boolean
  18. "Flag signaling whether a channel is censored."
  19. isCensored: Boolean!
  20. "Whether a channel has been excluded/hidden (by the gateway operator)"
  21. isExcluded: Boolean!
  22. "The primary langauge of the channel's content"
  23. language: String @index
  24. "List of videos that belong to the channel"
  25. videos: [Video!]! @derivedFrom(field: "channel")
  26. "Number of the block the channel was created in"
  27. createdInBlock: Int!
  28. "Channel's reward account, storing the income from the nft sales and channel payouts."
  29. rewardAccount: String!
  30. "Value of channel state bloat bond fee paid by channel creator"
  31. channelStateBloatBond: BigInt!
  32. "Number of active follows (to speed up orderBy queries by avoiding COUNT aggregation)"
  33. followsNum: Int!
  34. "Number of total video views (to speed up orderBy queries by avoiding COUNT aggregation)"
  35. videoViewsNum: Int!
  36. "List of members blocked from commenting/reacting on any video of the channel."
  37. bannedMembers: [BannedMember!] @derivedFrom(field: "channel")
  38. "Application used for channel creation"
  39. entryApp: App
  40. "Number of videos ever created in this channel"
  41. totalVideosCreated: Int!
  42. }
  43. type BannedMember @entity @index(fields: ["member", "channel"], unique: true) {
  44. "{memberId}-{channelId}"
  45. id: ID!
  46. member: Membership!
  47. channel: Channel!
  48. }