From 43115895e529eb37838ad6f38b43caf16c72afff Mon Sep 17 00:00:00 2001 From: s459312 Date: Thu, 25 May 2023 14:24:15 +0200 Subject: [PATCH] changed database --- product_db.json | 72 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 25 deletions(-) diff --git a/product_db.json b/product_db.json index e3c3acd..ed57b9c 100644 --- a/product_db.json +++ b/product_db.json @@ -1,26 +1,48 @@ -[ - { - "name":"banan", - "type":"owoc", - "brand":"banpol", - "price":"21.37", - "quantity":"1 kg", - "quality":"premium" - }, - { - "name":"iPhone", - "type":"telefon", - "brand":"Ejpl", - "price":"420", - "quantity":"1 szt", - "quality":"premium" - }, - { - "name":"RedBull", - "type":"energol", - "brand":"RedBull", - "price":"0.69", - "quantity":"330ml", - "quality":"exquisite" +{ + "database":{ + "payment":[ + { + "type":"karta", + "amount":"21 zł", + "loyalty_card":"23232323" + } + ], + "delivery":[ + { + "type":"paczkomat", + "address":"Aleje", + "time":"15:30" + } + ], + "product":[ + { + "name":"banan", + "type":"owoc", + "brand":"banpol", + "price":"21.37", + "quantity":"1 kg", + "quality":"premium" + }, + { + "name":"iPhone", + "type":"telefon", + "brand":"Ejpl", + "price":"420", + "quantity":"1 szt", + "quality":"premium" + }, + { + "name":"RedBull", + "type":"energol", + "brand":"RedBull", + "price":"0.69", + "quantity":"330ml", + "quality":"exquisite" + } + ] + + } -] \ No newline at end of file +} + + \ No newline at end of file