diff --git a/database.json b/database.json index a1619b9..a067009 100644 --- a/database.json +++ b/database.json @@ -1,79 +1,107 @@ { -"locations": [ - {"id":1, - "name": "Kandy Kastle", - "address": "5789 Thompson Lane, Nashville, TN, 37860" -}, -{ "id":2, - "name": "Heath-Row", - "address": "8347 Picadilly Trace, Louisville, KY, 38960" -}, -{ "id":3, - "name": "Kandy Kastle", - "address": "213 Appalachia Way, Knoxville, TN, 37203" -} -], + "locations": [{ + "id": 1, + "name": "Kandy Kastle", + "address": "5789 Thompson Lane, Nashville, TN, 37860" + }, + { + "id": 2, + "name": "Heath-Row", + "address": "8347 Picadilly Trace, Louisville, KY, 38960" + }, + { + "id": 3, + "name": "Kandy Kastle", + "address": "213 Appalachia Way, Knoxville, TN, 37203" + } + ], -"products": [ - {"id":1, - "candyName":"Heath Bar", - "price":1.50}, - {"id":2, - "candyName":"Lollipop", - "price":2.50} -], + "products": [{ + "id": 1, + "candyName": "Heath Bar", + "price": 1.50 + }, + { + "id": 2, + "candyName": "Lollipop", + "price": 2.50 + } + ], -"employees":[ - {"id":1, - "name": "Elena Pearson", - "hourlyPayRate": 15.00, - "locationId": 3, - "fullTime": true, - "manager": "Steve" + "employees": [{ + "id": 1, + "name": "Elena Pearson", + "hourlyPayRate": 15.00, + "locationId": 3, + "fullTime": true, + "manager": "Steve" + }, + { + "id": 2, + "name": "Mark Leeson", + "hourlyPayRate": 14.50, + "locationId": 2, + "fullTime": true, + "manager": "Monica" + + + }, + { + "id": 3, + "name": "Shelly Krystal", + "hourlyPayRate": 12.00, + "locationId": 1, + "fullTime": false, + "manager": "Taryn" + + } + ], + + "productTypes": [{ + "id": 1, + "candyType": "Candy Bar" + }, + { + "id": 2, + "candyType": "Hard Candy" + } + ], + + "customers": [{ + "id": 1, + "name": "Elias Ferguson", + "email": "yeauldscot@yahoo.co.uk" + }, + + { + "id": 2, + "name": "Ysabel Benhadid", + "email": "baruchhashem@vodafone.com.is" + } + ], + + "purchases": [{ + "id": 1, + "productStockAndLocationId": 1, + "customerId": 1, + "dateOfPurchase": "03/12/21", + "quantity": 39 + } + + ], + "productStockAndLocation": [{ + "id":1, + "productId":1, + "locationId":1, + "quantityAtLocation": 78 + }, - {"id":2, - "name": "Mark Leeson", - "hourlyPayRate": 14.50, - "locationId": 2, - "fullTime": true, - "manager": "Monica" - - - }, - { "id":3, - "name": "Shelly Krystal", - "hourlyPayRate": 12.00, - "locationId": 1, - "fullTime": false, - "manager": "Taryn" - + { + "id":1, + "productId":1, + "locationId":1, + "quantityAtLocation": 78 } -], - -"productTypes": -[ {"id":1, - "candyType": "Candy Bar"}, - {"id":2, - "candyType": "Hard Candy"} -], - -"customers": -[ -{"id":1, - "name":"Elias Ferguson", - "email": "yeauldscot@yahoo.co.uk"}, - {"id":2, - "name": "Ysabel Benhadid", - "email": "baruchhashem@vodafone.com.is"} -], - -"purchases": -[ - -], -"productStockAndLocation": -[ - -] + ] } \ No newline at end of file