Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Latest commit

 

History

History
16 lines (11 loc) · 939 Bytes

File metadata and controls

16 lines (11 loc) · 939 Bytes

@ceramic-sdk/model-protocol v0.2.1Docs


Ceramic SDK / @ceramic-sdk/model-protocol / ModelAccountRelationV2

Variable: ModelAccountRelationV2

const ModelAccountRelationV2: UnionCodec<[ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>, ExactCodec<TypeCodec<object>>]>

Represents the relationship between an instance of this model and the controller account:

  • 'list' means there can be many instances of this model for a single account
  • 'single' means there can be only one instance of this model per account (if a new instance is created it overrides the old one)
  • 'none' means there can be no instance associated to an account (for interfaces notably)
  • 'set' means there can be only one instance of this model per account and value of the specified content 'fields'