type RelatedMany @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
  id: String! @primaryKey
  secret: String @auth(rules: [{ allow: owner }])
  owner: String
  primaryId: String
  primary: Primary @belongsTo(references: ["primaryId"])
}

type RelatedOne @model @auth(rules: [{ allow: public, operations: [read] }, { allow: owner }]) {
  id: String! @primaryKey
  secret: String @auth(rules: [{ allow: owner }])
  owner: String
  primaryId: String
  primary: Primary @belongsTo(references: ["primaryId"])
}
