From 9f78d0c3fb3d05de2c17f2624bbd781d6085c5fd Mon Sep 17 00:00:00 2001 From: Grace Miguel Date: Sat, 15 May 2021 11:12:40 -0400 Subject: [PATCH] changed comment schema and comments in recipe --- dbSchema/comments.json | 6 ++++-- dbSchema/recipes.json | 9 +++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/dbSchema/comments.json b/dbSchema/comments.json index 29a859c..f4a3915 100644 --- a/dbSchema/comments.json +++ b/dbSchema/comments.json @@ -1,6 +1,8 @@ { "_id": "606219e9227bce189752a8bb", - "dateOfComment": "Mon Mar 29 2021 14:15:12 GMT-0400 (Eastern Daylight Time)", - "commenter": "john_doe_foodie", + "recipe_id": "id of recipe", + "user" : "Joe Schmo", + "user_id": "507f191e810c19729de860ea", "comment": "This food is trash" + } \ No newline at end of file diff --git a/dbSchema/recipes.json b/dbSchema/recipes.json index 70f05be..8de10cd 100644 --- a/dbSchema/recipes.json +++ b/dbSchema/recipes.json @@ -10,10 +10,11 @@ "tags": ["Dessert"], "comments": [ { - "_id": "606219e9227bce189752a8bb", - "dateOfComment": "Mon Mar 29 2021 14:15:12 GMT-0400 (Eastern Daylight Time)", - "commenter": "john_doe_foodie", - "comment": "This food is trash" + "_id": "606219e9227bce189752a8bb", + "recipe_id": "id of recipe", + "user" : "Joe Schmo", + "user_id": "507f191e810c19729de860ea", + "comment": "This food is trash" } ] }