From a64cde47af27acc73726cde90f31bb46f996a700 Mon Sep 17 00:00:00 2001 From: Horea Porutiu Date: Thu, 12 Oct 2023 09:50:48 +0200 Subject: [PATCH] Update README.md with db dchema --- examples/github-appcards/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/github-appcards/README.md b/examples/github-appcards/README.md index ffb91681d..b73dfb4b2 100644 --- a/examples/github-appcards/README.md +++ b/examples/github-appcards/README.md @@ -69,10 +69,22 @@ https://github.com/miroapp/app-examples/assets/10428517/70e7c32e-7206-42f7-b64d- 3. Click on `Create a new table` 4. Name this table `auth` and add in the following columns, with the respective `Format` as shown in the screenshot below. Note that capitalization is important for the table name. This table will hold access_tokens to be able to call the Miro REST API to sync changes which happen in the GitHub project. Disable Row Level security. +This is the schema for the `auth` table - make sure it is exactly the same to ensure this code works. + +![auth-table-schema](https://github.com/miroapp/app-examples/assets/10428517/d816df58-0208-4fa1-ba1c-08ac82b67aac) + +This is what the `auth` table should look like once it's been updated. + ![auth-database-configuration](https://github.com/miroapp/app-examples/assets/10428517/bbbcefcf-0621-4f6f-812d-021ae4aab047) 6. Click on `Create a new table` and name this table `card-mapping` and add in the following columns, with the respective `Format` as shown in the screenshot below. This table will hold the app card ID from Miro and the GitHub issue ID along with the MiroUserId. +This is the schema for the `card-mapping` table - make sure it is exactly the same to ensure this code works. + +![card-mapping-table-schema](https://github.com/miroapp/app-examples/assets/10428517/f38bb7b1-8c3c-4f27-ab14-6ba9e2300b4e) + +This is what the `card-mapping` table should look like once it's been updated. + ![card-mapping-database-configuration](https://github.com/miroapp/app-examples/assets/10428517/8eadeeb0-ab7a-4239-9961-c3dfcc038d1f) 8. Click on `Edit column` for the `miroUserId` in the `card-mapping` table, and then add in the following `Foreign Key Relation` as shown in the screenshot below.