storage.graphql 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. "The decision of the storage provider when it acts as liaison"
  2. enum LiaisonJudgement {
  3. "Content awaits for a judgment"
  4. PENDING
  5. "Content accepted"
  6. ACCEPTED
  7. "Content rejected"
  8. REJECTED
  9. }
  10. "Manages content ids, type and storage provider decision about it"
  11. type DataObject @entity {
  12. "Content owner"
  13. owner: DataObjectOwner!
  14. "Content added at"
  15. addedAt: Int!
  16. "Content type id"
  17. typeId: Int!
  18. "Content size in bytes"
  19. size: BigInt!
  20. "Storage provider id of the liaison"
  21. liaisonId: BigInt!
  22. "Storage provider as liaison judgment"
  23. liaisonJudgement: LiaisonJudgement!
  24. "IPFS content id"
  25. ipfsContentId: String!
  26. "Joystream runtime content"
  27. joystreamContentId: String!
  28. }
  29. "Owner type for storage object"
  30. union DataObjectOwner =
  31. DataObjectOwnerMember
  32. | DataObjectOwnerChannel
  33. | DataObjectOwnerDao
  34. | DataObjectOwnerCouncil
  35. | DataObjectOwnerWorkingGroup
  36. "Asset owned by a member"
  37. type DataObjectOwnerMember @variant {
  38. # use `BigInt` instead of `Membership` before variant relations are featured in Hydra
  39. #"Member identifier"
  40. #memberId: Membership!
  41. "Member identifier"
  42. member: BigInt!
  43. "Variant needs to have at least one property. This value is not used."
  44. dummy: Int
  45. }
  46. "Asset owned by a channel"
  47. type DataObjectOwnerChannel @variant {
  48. # use `BigInt` instead of `Channel` before variant relations are featured in Hydra
  49. #"Channel identifier"
  50. #channel: Channel!
  51. "Channel identifier"
  52. channel: BigInt!
  53. "Variant needs to have at least one property. This value is not used."
  54. dummy: Int
  55. }
  56. "Asset owned by a DAO"
  57. type DataObjectOwnerDao @variant {
  58. "DAO identifier"
  59. dao: BigInt!
  60. }
  61. "Asset owned by the Council"
  62. type DataObjectOwnerCouncil @variant {
  63. "Variant needs to have at least one property. This value is not used."
  64. dummy: Int
  65. }
  66. "Asset owned by a WorkingGroup"
  67. type DataObjectOwnerWorkingGroup @variant {
  68. #"Working group identifier"
  69. #workingGroup: BigInt!
  70. "Variant needs to have at least one property. This value is not used."
  71. dummy: Int
  72. }