Skip to content

Commit

Permalink
Added ability to upload case documents.
Browse files Browse the repository at this point in the history
Added ability to upload case documents i.e. files relevant to the case and view them.
Added masonry via vue-masonry (warning: No TS support).
Moved cases and appointment related components into their own folder appointments-cases.
Changed all <pre> blocks to have regular sans-serif fonts not monospaced, via a class added to ech <pre> block.

Replaced LambdaIntegration with a custom LambdaIntegrationNoPermission which does not individually add permissions for APIGateway integrations. A blanket permission is later added allowing any APIGW endpoint to call the lambda function.
This is required because of error: The final policy size (vwxyz) is bigger than the limit (20480).
Solution courtesy of aws/aws-cdk#9327 (comment)
  • Loading branch information
aryan-programmer committed Apr 23, 2023
1 parent 13fe706 commit 002e50d
Show file tree
Hide file tree
Showing 38 changed files with 1,019 additions and 329 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Expand Up @@ -131,7 +131,8 @@ template.yaml
# CDK asset staging directory
.cdk.staging
cdk.out
scratch.ts
scratch.sql
scratch/scratch.ts
scratch/scratch.sql
/server-build-metafile.json
/.output/
/scratch/
16 changes: 11 additions & 5 deletions create_db.sql
Expand Up @@ -111,12 +111,18 @@ CREATE TABLE `case` (
);

CREATE TABLE case_document (
id INT PRIMARY KEY AUTO_INCREMENT,
case_id INT NOT NULL,
uploaded_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
document_link VARCHAR(1024) NOT NULL,
id INT PRIMARY KEY AUTO_INCREMENT,
case_id INT NOT NULL,
uploaded_on DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
file_link VARCHAR(2048) NOT NULL,
file_mime VARCHAR(1024) NOT NULL,
file_name VARCHAR(1024) NOT NULL,
description VARCHAR(1024) NOT NULL,
uploaded_by_id INT NOT NULL,
FOREIGN KEY (case_id)
REFERENCES `case` (id)
REFERENCES `case` (id),
FOREIGN KEY (uploaded_by_id)
REFERENCES user (id)
);

CREATE TABLE `group` (
Expand Down

0 comments on commit 002e50d

Please sign in to comment.