From 10f48507373d913be526a1e35c14620a0e5c79db Mon Sep 17 00:00:00 2001 From: Randhir Kumar Singh <97341921+heyrandhir@users.noreply.github.com> Date: Sat, 25 Mar 2023 06:19:11 +0530 Subject: [PATCH 1/4] documented the data models for tags , items and levels --- items/README.md | 15 +++++++++++++++ levels/README.md | 14 ++++++++++++++ tags/README.md | 15 +++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 items/README.md create mode 100644 levels/README.md create mode 100644 tags/README.md diff --git a/items/README.md b/items/README.md new file mode 100644 index 0000000..d02bb0e --- /dev/null +++ b/items/README.md @@ -0,0 +1,15 @@ +# items firestore collection data model + +``` +{ + 'id': string, + 'itemId': string, + 'itemType': string, + 'levelId': string, + 'levelName': string, + 'levelNumber': number, + 'tagId': string, + 'tagName': string, + 'tagType': string, +} +``` \ No newline at end of file diff --git a/levels/README.md b/levels/README.md new file mode 100644 index 0000000..9258404 --- /dev/null +++ b/levels/README.md @@ -0,0 +1,14 @@ +# levels firestore collection data model + +``` +{ + 'id': string, + 'date': { + "_seconds": timestamp, + "_nanoseconds": timestamp, + }, + 'createdBy': string, + 'value': number, + 'name': string, +} +``` \ No newline at end of file diff --git a/tags/README.md b/tags/README.md new file mode 100644 index 0000000..aa1bf58 --- /dev/null +++ b/tags/README.md @@ -0,0 +1,15 @@ +# tags firestore collection data model + +``` +{ + 'id': string, + 'date': { + "_seconds": number, + "_nanoseconds": timestamp, + }, + 'reason': string, + 'createdBy': string, + 'name': string, + 'type': string, +} +``` \ No newline at end of file From 8d4be783aaa0f5aadee2dcbf9fde2ccb22e96674 Mon Sep 17 00:00:00 2001 From: Randhir Kumar Singh <97341921+heyrandhir@users.noreply.github.com> Date: Sun, 26 Mar 2023 20:58:18 +0530 Subject: [PATCH 2/4] corrected the datatype for date field --- levels/README.md | 5 +---- tags/README.md | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/levels/README.md b/levels/README.md index 9258404..cc23fed 100644 --- a/levels/README.md +++ b/levels/README.md @@ -3,10 +3,7 @@ ``` { 'id': string, - 'date': { - "_seconds": timestamp, - "_nanoseconds": timestamp, - }, + 'date': timeStamp, 'createdBy': string, 'value': number, 'name': string, diff --git a/tags/README.md b/tags/README.md index aa1bf58..d6c29cf 100644 --- a/tags/README.md +++ b/tags/README.md @@ -3,10 +3,7 @@ ``` { 'id': string, - 'date': { - "_seconds": number, - "_nanoseconds": timestamp, - }, + 'date': timeStamp, 'reason': string, 'createdBy': string, 'name': string, From 020595e8a1b8c85fce719fad595235796d38ee62 Mon Sep 17 00:00:00 2001 From: Randhir Kumar Singh <97341921+heyrandhir@users.noreply.github.com> Date: Sun, 26 Mar 2023 21:04:25 +0530 Subject: [PATCH 3/4] corrected the datatype for date field in tags --- tags/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags/README.md b/tags/README.md index d6c29cf..f618d85 100644 --- a/tags/README.md +++ b/tags/README.md @@ -3,7 +3,7 @@ ``` { 'id': string, - 'date': timeStamp, + 'date': string, 'reason': string, 'createdBy': string, 'name': string, From e7e5a8ed3ff22a46b349dacfc36a19b9abdb23d5 Mon Sep 17 00:00:00 2001 From: Randhir Kumar Singh <97341921+heyrandhir@users.noreply.github.com> Date: Sun, 26 Mar 2023 21:29:36 +0530 Subject: [PATCH 4/4] Update README.md updated the date field datatype for tags --- tags/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tags/README.md b/tags/README.md index f618d85..6c326eb 100644 --- a/tags/README.md +++ b/tags/README.md @@ -3,10 +3,10 @@ ``` { 'id': string, - 'date': string, + 'date': timeStamp, 'reason': string, 'createdBy': string, 'name': string, 'type': string, } -``` \ No newline at end of file +```