ModelAccountRelationV2: UnionCodec<[ExactCodec<TypeCodec<{ type: LiteralCodec<"list"> }>>, ExactCodec<TypeCodec<{ type: LiteralCodec<"single"> }>>, ExactCodec<TypeCodec<{ type: LiteralCodec<"none"> }>>, ExactCodec<TypeCodec<{ fields: Codec<string[], string[], unknown> & {}; type: LiteralCodec<"set"> }>>]> = ...

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'