Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions amplify/backend/api/simplecalc/cli-inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
"apiName": "simplecalc",
"serviceName": "AppSync",
"defaultAuthType": {
"mode": "AMAZON_COGNITO_USER_POOLS",
"cognitoUserPoolId": "authsimplecalcbca74913bca74913"
},
"additionalAuthTypes": [
{
"mode": "AWS_IAM"
}
],
"conflictResolution": {}
"mode": "API_KEY",
"expirationTime": 7
}
}
}
9 changes: 1 addition & 8 deletions amplify/backend/api/simplecalc/parameters.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
{
"AppSyncApiName": "simplecalc",
"DynamoDBBillingMode": "PAY_PER_REQUEST",
"DynamoDBEnableServerSideEncryption": false,
"AuthCognitoUserPoolId": {
"Fn::GetAtt": [
"authsimplecalcbca74913bca74913",
"Outputs.UserPoolId"
]
},
"AuthModeLastUpdated": "2022-10-01T23:13:13.791Z"
"DynamoDBEnableServerSideEncryption": false
}
9 changes: 3 additions & 6 deletions amplify/backend/api/simplecalc/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,23 @@
# all models in this schema. Learn more about authorization rules here: https://docs.amplify.aws/cli/graphql/authorization-rules
input AMPLIFY { globalAuthRule: AuthRule = { allow: public } } # FOR TESTING ONLY!

type Student @model @auth(rules: [{allow: owner}]) {
type Student @model {
id: ID!
name: String!
email: String!
status: String!
room: Room @belongsTo
}

type Teacher @model @auth(rules: [{allow: owner}]) {
type Teacher @model {
id: ID!
name: String!
email: String
room: Room @hasOne
}

type Room @model @auth(rules: [{ allow: owner, ownerField: "owner", operations: [create, read, update, delete] }]) {
type Room @model {
id: ID!
name: String!
teacher: Teacher! @belongsTo
student: [Student] @hasMany
code: String!
owner: String
}
22 changes: 0 additions & 22 deletions amplify/backend/auth/simplecalcbca74913bca74913/assets/index.html

This file was deleted.

190 changes: 0 additions & 190 deletions amplify/backend/auth/simplecalcbca74913bca74913/assets/spinner.js

This file was deleted.

28 changes: 0 additions & 28 deletions amplify/backend/auth/simplecalcbca74913bca74913/assets/style.css

This file was deleted.

53 changes: 0 additions & 53 deletions amplify/backend/auth/simplecalcbca74913bca74913/assets/verify.js

This file was deleted.

Loading