Skip to content

Commit

Permalink
Merge branch 'feature/orgApplication' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyenHuang committed Sep 14, 2020
2 parents 68b826b + 24a04e8 commit 75689ac
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
type ApplicationOrganization
@model
@key(name: "byStatusByUpdate", fields: ["status", "updatedAt"], queryField: "getApplicationByStatusByUpdate")
@auth(rules: [
{allow: owner, ownerField: "username", operations: [read]},
{allow: groups, groups: ["AppAdmins"]},
])
{
id: ID!
username: String! # 機構負責人帳號

name: String! # 機構名稱
registeredName: String! # 政府立案名稱
taxIdNumber: String! # 統一編號
description: String! # 描述
phoneNumber: String!
email: String!
address: Address!

comments: [ApplicationOrganizationComment]

status: ApplicationOrganizationStatus!
createdAt: AWSDateTime!
updatedAt: AWSDateTime!
}

enum ApplicationOrganizationStatus {
Pending
Waiting For Additional Documents
Approved
Rejected
}

type ApplicationOrganizationComment {
createdAt: AWSDateTime!
createdBy: String!
comment: String!
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ type Organization
id: ID!
name: String!
description: String!
# from application
registeredName: String
taxIdNumber: String
phoneNumber: String
email: String
address: Address

isActive: Int!
createdAt: AWSDateTime!
updatedAt: AWSDateTime!
Expand Down
7 changes: 7 additions & 0 deletions amplify/backend/api/piggybankofhappiness/schema/Types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,11 @@ enum TaskStatusType {
In progress
Completed
Failed
}

type Address {
county: String! # 台北市
district: String! # 信義區
street: String! # 市府路45號
zipCode: String! # 11060
}
2 changes: 1 addition & 1 deletion mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ios": {
"usesAppleSignIn": true,
"supportsTablet": true,
"buildNumber": "45",
"buildNumber": "47",
"bundleIdentifier": "cloud.goldax.piggy-bank-of-happiness",
"infoPlist": {}
},
Expand Down

0 comments on commit 75689ac

Please sign in to comment.