Skip to content

Commit

Permalink
schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeBellTMH committed Jun 28, 2023
1 parent 86629dc commit b6d7c50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion amplify/backend/api/themeetinghouse/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1540,6 +1540,11 @@ type TMHUser @model @auth(rules: [{allow: owner, ownerField: "owner", operations
f1HouseholdId: String @auth(rules: [{allow: owner, ownerField: "owner", operations: [read]}, {allow: groups, groups: ["PaymentService"]}])
}

type TMHSite @model @auth(rules: [{allow: public, operations: [read]}, {allow: private, operations: [read], provider: iam}, {allow: groups, groups: ["Admin"], provider: userPools}]){
id: String!
tmhPeople: [TMHPerson] @manyToMany(relationName: "SitePerson")
}

type TMHPerson @model @searchable @auth(rules: [{allow: public, operations: [read]}, {allow: private, operations: [read], provider: iam}, {allow: groups, groups: ["Admin"], provider: userPools}]) {
id: ID!
email: AWSEmail
Expand All @@ -1549,6 +1554,7 @@ type TMHPerson @model @searchable @auth(rules: [{allow: public, operations: [rea
phone: String
extension: String
sites: [String]
tmhSites: [TMHSite] @manyToMany(relationName: "SitePerson")
position: String
isTeacher: String @default(value: "false") @index(name: "byIsTeacher", queryField: "TMHPersonByIsTeacher")
isStaff: String @default(value: "false") @index(name: "byIsStaff", queryField: "TMHPersonByIsStaff")
Expand Down Expand Up @@ -1658,4 +1664,4 @@ type Address {
line2: String
postal_code: String
state: String
}
}

0 comments on commit b6d7c50

Please sign in to comment.