From 2102a50fbd181dd652ecc70c2bb41be2f3c009bb Mon Sep 17 00:00:00 2001 From: SJay747 <30780309+SJay747@users.noreply.github.com> Date: Tue, 15 Aug 2017 10:25:43 +0100 Subject: [PATCH 1/3] Update listing.json --- db/json/listing.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/db/json/listing.json b/db/json/listing.json index e69de29..ea24204 100644 --- a/db/json/listing.json +++ b/db/json/listing.json @@ -0,0 +1,9 @@ +{ + "renterID" :"VARCHAR(255)", + "renteeID" :"VARCHAR(255)", + "status" :"VARCHAR(255)", + "timeActive" :"VARCHAR(255)", + "rating" :"VARCHAR(255)", + "reviewDescriptionTableID" :"VARCHAR(255)", (create another table full of string format reviews) + "timesRented" :"VARCHAR(255)" +} From 8dc836793ac563a53829078ffd7e8a13521668e7 Mon Sep 17 00:00:00 2001 From: SJay747 <30780309+SJay747@users.noreply.github.com> Date: Tue, 15 Aug 2017 10:34:39 +0100 Subject: [PATCH 2/3] Update listing.json --- db/json/listing.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/db/json/listing.json b/db/json/listing.json index ea24204..9ab3588 100644 --- a/db/json/listing.json +++ b/db/json/listing.json @@ -1,9 +1,9 @@ { - "renterID" :"VARCHAR(255)", - "renteeID" :"VARCHAR(255)", + "renterID" :"int(10)", + "renteeID" :"int(10)", "status" :"VARCHAR(255)", - "timeActive" :"VARCHAR(255)", - "rating" :"VARCHAR(255)", - "reviewDescriptionTableID" :"VARCHAR(255)", (create another table full of string format reviews) - "timesRented" :"VARCHAR(255)" + "timeActive" :"VARCHAR(255)", // not sure what format this would be in? Is there a clock system we can use in mySQL? + "rating" :"int(5)", // rating out of 5 used to calculate some kind of award system + "reviewDescriptionTableID" :"int(10)", //(create another table full of string format reviews) + "timesRented" :"int(255)" } From 6bbd0eb7f76f77ac6928343299543b075318b9cf Mon Sep 17 00:00:00 2001 From: SJay747 <30780309+SJay747@users.noreply.github.com> Date: Tue, 15 Aug 2017 14:00:30 +0100 Subject: [PATCH 3/3] Update listing.json --- db/json/listing.json | 1 + 1 file changed, 1 insertion(+) diff --git a/db/json/listing.json b/db/json/listing.json index 9ab3588..5622661 100644 --- a/db/json/listing.json +++ b/db/json/listing.json @@ -7,3 +7,4 @@ "reviewDescriptionTableID" :"int(10)", //(create another table full of string format reviews) "timesRented" :"int(255)" } +