diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..2508b1c Binary files /dev/null and b/.DS_Store differ diff --git a/Mock Data/orders.orders.json b/Mock Data/orders.orders.json new file mode 100644 index 0000000..2d41cef --- /dev/null +++ b/Mock Data/orders.orders.json @@ -0,0 +1,114 @@ +[{ + "_id": { + "$oid": "6630a9647d2ab17073a6b7d0" + }, + "userId": { + "$oid": "663094792b95767e75bca927" + }, + "products": [ + { + "productId": { + "$oid": "663095360a4796c4f4ccd8b5" + }, + "quantity": 1, + "_id": { + "$oid": "6630a9647d2ab17073a6b7d1" + } + }, + { + "productId": { + "$oid": "663095550a4796c4f4ccd8bb" + }, + "quantity": 2, + "_id": { + "$oid": "6630a9647d2ab17073a6b7d2" + } + } + ], + "orderDate": { + "$date": "2024-04-30T07:00:00.000Z" + }, + "status": "paid", + "__v": 0 +}, +{ + "_id": { + "$oid": "6630abfd5a7fe2d78a3ddaca" + }, + "userId": { + "$oid": "6630949a2b95767e75bca92a" + }, + "products": [ + { + "productId": { + "$oid": "6630953e0a4796c4f4ccd8b7" + }, + "quantity": 1, + "_id": { + "$oid": "6630abfd5a7fe2d78a3ddacb" + } + } + ], + "orderDate": { + "$date": "2024-04-30T07:05:00.000Z" + }, + "status": "awaiting payment", + "__v": 0 +}, +{ + "_id": { + "$oid": "6630ac075a7fe2d78a3ddacd" + }, + "userId": { + "$oid": "663094a02b95767e75bca92c" + }, + "products": [ + { + "productId": { + "$oid": "6630955f0a4796c4f4ccd8bd" + }, + "quantity": 2, + "_id": { + "$oid": "6630ac075a7fe2d78a3ddace" + } + }, + { + "productId": { + "$oid": "6630954a0a4796c4f4ccd8b9" + }, + "quantity": 1, + "_id": { + "$oid": "6630ac075a7fe2d78a3ddacf" + } + } + ], + "orderDate": { + "$date": "2024-04-30T07:10:00.000Z" + }, + "status": "awaiting payment", + "__v": 0 +}, +{ + "_id": { + "$oid": "6630ba0d5c6e78851ab87ad6" + }, + "userId": { + "$oid": "663094a02b95767e75bca92c" + }, + "products": [ + { + "productId": { + "$oid": "6630b9d45f9bfb341b19995f" + }, + "quantity": 20, + "_id": { + "$oid": "6630ba0d5c6e78851ab87ad7" + } + } + ], + "orderDate": { + "$date": "2024-04-30T07:10:00.000Z" + }, + "status": "paid", + "__v": 0 +}] \ No newline at end of file diff --git a/Mock Data/payments.payments.json b/Mock Data/payments.payments.json new file mode 100644 index 0000000..502d6d5 --- /dev/null +++ b/Mock Data/payments.payments.json @@ -0,0 +1,26 @@ +[{ + "_id": { + "$oid": "6630b11434fa296830d38d7a" + }, + "orderId": { + "$oid": "6630a9647d2ab17073a6b7d0" + }, + "amount": 1700, + "paymentDate": { + "$date": "2024-04-30T08:51:32.071Z" + }, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630ba4534fa296830d38d7d" + }, + "orderId": { + "$oid": "6630ba0d5c6e78851ab87ad6" + }, + "amount": 600, + "paymentDate": { + "$date": "2024-04-30T09:30:45.291Z" + }, + "__v": 0 +}] \ No newline at end of file diff --git a/Mock Data/products.products.json b/Mock Data/products.products.json new file mode 100644 index 0000000..e90793e --- /dev/null +++ b/Mock Data/products.products.json @@ -0,0 +1,54 @@ +[{ + "_id": { + "$oid": "663095360a4796c4f4ccd8b5" + }, + "name": "Laptop", + "price": 1200, + "stock": 28, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630953e0a4796c4f4ccd8b7" + }, + "name": "Smartphone", + "price": 700, + "stock": 49, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630954a0a4796c4f4ccd8b9" + }, + "name": "Tablet", + "price": 450, + "stock": 39, + "__v": 0 +}, +{ + "_id": { + "$oid": "663095550a4796c4f4ccd8bb" + }, + "name": "Smartwatch", + "price": 250, + "stock": 56, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630955f0a4796c4f4ccd8bd" + }, + "name": "Headphones", + "price": 150, + "stock": 88, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630b9d45f9bfb341b19995f" + }, + "name": "Charger", + "price": 30, + "stock": 170, + "__v": 0 +}] \ No newline at end of file diff --git a/Mock Data/users.users.json b/Mock Data/users.users.json new file mode 100644 index 0000000..20e1aa1 --- /dev/null +++ b/Mock Data/users.users.json @@ -0,0 +1,44 @@ +[{ + "_id": { + "$oid": "663094792b95767e75bca927" + }, + "name": "Test User 1", + "email": "test1@example.com", + "registeredAt": { + "$date": "2024-04-30T06:49:29.172Z" + }, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630949a2b95767e75bca92a" + }, + "name": "Test User 2", + "email": "test2@example.com", + "registeredAt": { + "$date": "2024-04-30T06:50:02.448Z" + }, + "__v": 0 +}, +{ + "_id": { + "$oid": "663094a02b95767e75bca92c" + }, + "name": "Test User 3", + "email": "test3@example.com", + "registeredAt": { + "$date": "2024-04-30T06:50:08.429Z" + }, + "__v": 0 +}, +{ + "_id": { + "$oid": "6630b9afc3eb056dba547459" + }, + "name": "Test User 4", + "email": "test4@example.com", + "registeredAt": { + "$date": "2024-04-30T09:28:15.906Z" + }, + "__v": 0 +}] \ No newline at end of file