From 3642d730a7a9d2acb4db5a3fae77d4e1913781b6 Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Wed, 1 Mar 2023 06:55:59 +0530 Subject: [PATCH 1/2] updated the model with optional attributes fields --- external-accounts/README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/external-accounts/README.md b/external-accounts/README.md index b7f2bb4..8947c55 100644 --- a/external-accounts/README.md +++ b/external-accounts/README.md @@ -2,8 +2,6 @@ ## Firestore collection: -- external-accounts - ``` { "type": string, @@ -13,6 +11,12 @@ } ``` +- Optional fields for `attributes`: + - `expiry` - timestamp + - `discordId` - number + - `username` - string + - `picture` - string + ### Example - For Discord Accounts ``` @@ -21,7 +25,9 @@ "token": string, "createdOn": timestamp, "attributes" : { - "discordId": string, + "discordId": number, + "username": string, + "picture": string, "expiry": timestamp, } } From b172ec1447bbcd536c434b0615c628fdbc5c6930 Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Wed, 1 Mar 2023 07:08:47 +0530 Subject: [PATCH 2/2] modified field values --- external-accounts/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/external-accounts/README.md b/external-accounts/README.md index 8947c55..813b2ca 100644 --- a/external-accounts/README.md +++ b/external-accounts/README.md @@ -12,10 +12,11 @@ ``` - Optional fields for `attributes`: - - `expiry` - timestamp - `discordId` - number - `username` - string - - `picture` - string + - `avatar` - string + - `discriminator` - string + - `expiry` - timestamp ### Example - For Discord Accounts @@ -27,7 +28,8 @@ "attributes" : { "discordId": number, "username": string, - "picture": string, + "avatar": string, + "discriminator": string, "expiry": timestamp, } }