# For this test, "Group1" owns Primary, "Group2" owns Related, and "Group3" is an Admin who owns both
type RelatedMany @model @auth(rules: [{ allow: groups, groups: ["Group2", "Group3"] }]) {
  id: String! @primaryKey
  content: String
  primaryId: String
  primary: Primary @belongsTo(references: ["primaryId"])
}

type RelatedOne @model @auth(rules: [{ allow: groups, groups: ["Group2", "Group3"] }]) {
  id: String! @primaryKey
  content: String
  primaryId: String
  primary: Primary @belongsTo(references: ["primaryId"])
}
