Skip to content

Commit

Permalink
Added mock data
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvraajsj18 committed May 1, 2024
1 parent e86d51f commit dc9c5a0
Show file tree
Hide file tree
Showing 5 changed files with 238 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
114 changes: 114 additions & 0 deletions Mock Data/orders.orders.json
Original file line number Diff line number Diff line change
@@ -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
}]
26 changes: 26 additions & 0 deletions Mock Data/payments.payments.json
Original file line number Diff line number Diff line change
@@ -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
}]
54 changes: 54 additions & 0 deletions Mock Data/products.products.json
Original file line number Diff line number Diff line change
@@ -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
}]
44 changes: 44 additions & 0 deletions Mock Data/users.users.json
Original file line number Diff line number Diff line change
@@ -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
}]

0 comments on commit dc9c5a0

Please sign in to comment.