Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions backend/data/cart.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
{
"00000000-0000-0000-0000-000000000006": {
"items": [
{
"product_id": "B07JW9H4J1",
"product_name": "Wayona Nylon Braided USB to Lightning Cable",
"img_link": "https://example.com/cable.jpg",
"product_link": "https://example.com/cable",
"discounted_price": 299.0,
"quantity": 2
}
]
},
"00000000-0000-0000-0000-000000000103": {
"items": []
},
"428391c9-ec68-4a25-9d66-0580cec3ce6a": {
"items": []
},
Expand All @@ -31,5 +16,20 @@
},
"a7977848-4f94-4cb5-beea-6aa0604d3dda": {
"items": []
},
"00000000-0000-0000-0000-000000000006": {
"items": [
{
"product_id": "B07JW9H4J1",
"product_name": "Wayona Nylon Braided USB to Lightning Cable",
"img_link": "https://example.com/cable.jpg",
"product_link": "https://example.com/cable",
"discounted_price": 299.0,
"quantity": 2
}
]
},
"00000000-0000-0000-0000-000000000103": {
"items": []
}
}
73 changes: 1 addition & 72 deletions backend/data/penalties.json
Original file line number Diff line number Diff line change
@@ -1,72 +1 @@
[
{
"penalty_id": "7449b7ee-a743-425c-8e70-7b0bf2833e6a",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "refunding too many products",
"timestamp": "2025-12-04T09:35:08.730552+00:00",
"status": "resolved"
},
{
"penalty_id": "00c7296d-00c0-40ee-a31d-710c52403f92",
"user_id": "1cb86309-e8b2-45e3-8da7-1c2f54c65ae5",
"reason": "you are spamming",
"timestamp": "2025-12-04T09:43:45.939387+00:00",
"status": "resolved"
},
{
"penalty_id": "25e7bb8e-a632-4c95-8867-eae62d624923",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "youve been bad",
"timestamp": "2025-12-04T09:46:06.251422+00:00",
"status": "resolved"
},
{
"penalty_id": "dcbd8143-49c9-4ed1-900a-5c00839afb1f",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "this is a test\n",
"timestamp": "2025-12-04T09:51:32.112239+00:00",
"status": "resolved"
},
{
"penalty_id": "fcc4f1f7-b804-47b7-aabd-df60422581e1",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "this will be resolved\n",
"timestamp": "2025-12-04T09:51:39.294157+00:00",
"status": "resolved"
},
{
"penalty_id": "acea54ce-b852-4278-a61c-0c5ce22e1f4a",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"reason": "another one, bad",
"timestamp": "2025-12-04T21:36:26.127889+00:00",
"status": "active"
},
{
"penalty_id": "e540b446-4cc6-4fce-bb97-0391ad57a113",
"user_id": "0bffca91-1c49-47a5-87b7-b0248da35d16",
"reason": "youve been spamming orders",
"timestamp": "2025-12-04T23:16:53.220112+00:00",
"status": "active"
},
{
"penalty_id": "ad972921-23d0-4d17-918e-8d540c16a2aa",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "bad bad",
"timestamp": "2025-12-04T23:27:44.655761+00:00",
"status": "active"
},
{
"penalty_id": "ee63d5ff-75ab-4e8f-87a4-07b11e9f0c72",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "terrible",
"timestamp": "2025-12-04T23:27:53.185321+00:00",
"status": "resolved"
},
{
"penalty_id": "78900127-1853-499f-a3bb-33b92c2539aa",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"reason": "okay.",
"timestamp": "2025-12-04T23:27:59.267582+00:00",
"status": "resolved"
}
]
[]
13 changes: 0 additions & 13 deletions backend/data/products_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,5 @@
"product_link": "https://example.com/tv",
"rating": 4.8,
"rating_count": 43994
},
{
"product_id": "B09NX5K7QP",
"product_name": "Dell XPS 13 Laptop",
"category": "Electronics|Computers",
"discounted_price": 89999.0,
"actual_price": 119999.0,
"discount_percentage": 25.0,
"about_product": "Ultra-portable laptop",
"img_link": "https://example.com/laptop.jpg",
"product_link": "https://example.com/laptop",
"rating": 4.6,
"rating_count": 7928
}
]
84 changes: 1 addition & 83 deletions backend/data/refunds.json
Original file line number Diff line number Diff line change
@@ -1,83 +1 @@
[
{
"refund_id": "8579dcea-5176-44c1-908c-34c331c9a5ad",
"transaction_id": "6687dda3-0598-4de0-ad13-a12921e44f9f",
"user_id": "428391c9-ec68-4a25-9d66-0580cec3ce6a",
"message": "testing\n",
"status": "approved",
"created_at": "2025-12-04T02:06:23.538296",
"updated_at": "2025-12-04T02:06:39.740320"
},
{
"refund_id": "53a14e4e-79b4-42e2-911f-a2092fd0cca1",
"transaction_id": "29ce33c7-ccc3-48b2-b1ed-e4bc0c88ad82",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"message": "These chargers do no work\n",
"status": "approved",
"created_at": "2025-12-04T08:36:22.238907",
"updated_at": "2025-12-04T08:39:12.578734"
},
{
"refund_id": "d2ef512f-9992-4e1a-b55e-864688ada23c",
"transaction_id": "9b099db3-fe2c-48b2-afbb-f55ccfd678f3",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"message": "no work\n",
"status": "denied",
"created_at": "2025-12-04T08:52:08.053921",
"updated_at": "2025-12-04T09:21:09.454366"
},
{
"refund_id": "4f54ec90-d394-4492-aad0-a675a248c6db",
"transaction_id": "a8506de4-375e-44a5-ba48-b65859cbe3cc",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"message": "refund me pls",
"status": "denied",
"created_at": "2025-12-04T09:20:19.147848",
"updated_at": "2025-12-04T09:21:06.675910"
},
{
"refund_id": "a9542e94-2679-443a-92bd-3d09cb3d570d",
"transaction_id": "e0db5af0-bd0e-476a-b86d-1bb743cb609f",
"user_id": "ae993132-12a6-40c6-a91a-3fe889d95edd",
"message": "me no want\n",
"status": "approved",
"created_at": "2025-12-04T10:12:33.057054",
"updated_at": "2025-12-04T10:12:45.085243"
},
{
"refund_id": "71f83598-299a-447f-849e-3b68bf9e8cd0",
"transaction_id": "c46e0b79-7826-456c-bdce-6dd3c6925455",
"user_id": "ae993132-12a6-40c6-a91a-3fe889d95edd",
"message": "doesnt work",
"status": "pending",
"created_at": "2025-12-04T20:46:11.739573",
"updated_at": null
},
{
"refund_id": "13a0b241-346a-4190-8afa-5e0c3b91b8a7",
"transaction_id": "0f782aad-2231-4e57-8e8a-372c549afa39",
"user_id": "79be980f-d83d-4c63-b3b6-77c13193e1a5",
"message": "too many remotes, not enough Tv's",
"status": "approved",
"created_at": "2025-12-04T21:33:17.094571",
"updated_at": "2025-12-04T21:34:32.033344"
},
{
"refund_id": "404885a2-860f-4205-82eb-a302f64e244d",
"transaction_id": "a0ed719b-2c7e-4b33-923f-34678914c794",
"user_id": "0bffca91-1c49-47a5-87b7-b0248da35d16",
"message": "I dont like these items, too expensive",
"status": "approved",
"created_at": "2025-12-04T23:10:46.971177",
"updated_at": "2025-12-04T23:11:51.938404"
},
{
"refund_id": "f6b3f3e4-f7f6-4aeb-b54c-055f5297d166",
"transaction_id": "57517be3-1662-4780-9e2f-bf6c22ceb909",
"user_id": "a7977848-4f94-4cb5-beea-6aa0604d3dda",
"message": "Not a fan of the charger",
"status": "approved",
"created_at": "2025-12-04T23:23:57.599942",
"updated_at": "2025-12-04T23:24:42.470210"
}
]
[]
Loading