Skip to content
Merged
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
Binary file removed .DS_Store
Binary file not shown.
Binary file modified backend/__pycache__/main.cpython-313.pyc
Binary file not shown.
34 changes: 34 additions & 0 deletions backend/data/cart.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,39 @@
},
"428391c9-ec68-4a25-9d66-0580cec3ce6a": {
"items": []
},
"79be980f-d83d-4c63-b3b6-77c13193e1a5": {
"items": [
{
"product_id": "B08HDJ86NZ",
"product_name": "boAt Deuce USB 300 2 in 1 Type-C & Micro USB Stress Resistant, Tangle-Free, Sturdy Cable with 3A Fast Charging & 480mbps Data Transmission, 10000+ Bends Lifespan and Extended 1.5m Length(Martian Red)",
"img_link": "https://m.media-amazon.com/images/I/41V5FtEWPkL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Deuce-300-Resistant-Tangle-Free-Transmission/dp/B08HDJ86NZ/ref=sr_1_4?qid=1672909124&s=electronics&sr=1-4",
"discounted_price": 329.0,
"quantity": 1
},
{
"product_id": "B08Y1TFSP6",
"product_name": "pTron Solero TB301 3A Type-C Data and Fast Charging Cable, Made in India, 480Mbps Data Sync, Strong and Durable 1.5-Meter Nylon Braided USB Cable for Type-C Devices for Charging Adapter (Black)",
"img_link": "https://m.media-amazon.com/images/I/31wOPjcSxlL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Solero-TB301-Charging-480Mbps-1-5-Meter/dp/B08Y1TFSP6/ref=sr_1_6?qid=1672909124&s=electronics&sr=1-6",
"discounted_price": 149.0,
"quantity": 1
},
{
"product_id": "B098NS6PVG",
"product_name": "Ambrane Unbreakable 60W / 3A Fast Charging 1.5m Braided Type C Cable for Smartphones, Tablets, Laptops & other Type C devices, PD Technology, 480Mbps Data Sync, Quick Charge 3.0 (RCT15A, Black)",
"img_link": "https://m.media-amazon.com/images/I/41lJ8x1yeIL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Ambrane-Unbreakable-Charging-Braided-Cable/dp/B098NS6PVG/ref=sr_1_2?qid=1672909124&s=electronics&sr=1-2",
"discounted_price": 199.0,
"quantity": 1
}
]
},
"ae993132-12a6-40c6-a91a-3fe889d95edd": {
"items": []
},
"1cb86309-e8b2-45e3-8da7-1c2f54c65ae5": {
"items": []
}
}
38 changes: 37 additions & 1 deletion backend/data/penalties.json
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
[]
[
{
"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": "active"
},
{
"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"
}
]
52 changes: 0 additions & 52 deletions backend/data/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@
"img_link": "https://m.media-amazon.com/images/I/41lJ8x1yeIL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Ambrane-Unbreakable-Charging-Braided-Cable/dp/B098NS6PVG/ref=sr_1_2?qid=1672909124&s=electronics&sr=1-2"
},
{
"product_id": "B096MSW6CT",
"product_name": "Sounce Fast Phone Charging Cable & Data Sync USB Cable Compatible for iPhone 13, 12,11, X, 8, 7, 6, 5, iPad Air, Pro, Mini & iOS Devices",
"category": "Computers&Accessories|Accessories&Peripherals|Cables&Accessories|Cables|USBCables",
"discounted_price": 199.0,
"actual_price": 1899.0,
"discount_percentage": 90.0,
"rating": 3.9,
"rating_count": 7928,
"about_product": "【 Fast Charger& Data Sync】-With built-in safety proctections and four-core copper wires promote maximum signal quality and strength and enhance charging & data transfer speed with up to 480 mb/s transferring speed.|【 Compatibility】-Compatible with iPhone 13, 12,11, X, 8, 7, 6, 5, iPad Air, Pro, Mini & iOS devices.|【 Sturdy & Durable】-The jacket and enforced connector made of TPE and premium copper, are resistant to repeatedly bending and coiling.|【 Ultra High Quality】: According to the experimental results, the fishbone design can accept at least 20,000 bending and insertion tests for extra protection and durability. Upgraded 3D aluminum connector and exclusive laser welding technology, which to ensure the metal part won't break and also have a tighter connection which fits well even with a protective case on and will never loose connection.|【 Good After Sales Service】-Our friendly and reliable customer service will respond to you within 24 hours ! you can purchase with confidence,and every sale includes a 365-day worry-free Service to prove the importance we set on quality.",
"img_link": "https://m.media-amazon.com/images/W/WEBP_402378-T1/images/I/31IvNJZnmdL._SY445_SX342_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Sounce-iPhone-Charging-Compatible-Devices/dp/B096MSW6CT/ref=sr_1_3?qid=1672909124&s=electronics&sr=1-3"
},
{
"product_id": "B08HDJ86NZ",
"product_name": "boAt Deuce USB 300 2 in 1 Type-C & Micro USB Stress Resistant, Tangle-Free, Sturdy Cable with 3A Fast Charging & 480mbps Data Transmission, 10000+ Bends Lifespan and Extended 1.5m Length(Martian Red)",
Expand Down Expand Up @@ -3834,19 +3821,6 @@
"img_link": "https://m.media-amazon.com/images/I/512qfz0MI0L._SX300_SY300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Kodak-inches-55CA0909-Digital-Surround/dp/B08XXF5V6G/ref=sr_1_462?qid=1672909147&s=electronics&sr=1-462"
},
{
"product_id": "B09HK9JH4F",
"product_name": "Smashtronics® - Case for Firetv Remote, Fire Stick Remote Cover Case, Silicone Cover for TV Firestick 4K/TV 2nd Gen(3rd Gen) Remote Control - Light Weight/Anti Slip/Shockproof (Black)",
"category": "Electronics|HomeTheater,TV&Video|Accessories|RemoteControls",
"discounted_price": 199.0,
"actual_price": 399.0,
"discount_percentage": 50.0,
"rating": 4.2,
"rating_count": 1335,
"about_product": "【100% Fits】Specially designed for Fire TV Stick (2nd Gen), Fire TV Stick 4K, Fire TV Cube, and Amazon Fire TV (3rd Gen, Pendant Design). Tips:Pls compare with your firestick model fit or not before purchase.|【Full Body Protection】High-quality and eco-friendly silicone material, harmless to your pets, kids and families. Prevent the child from opening the back cover and provides the maximum protection, anti-slip, anti-dust, shock proof and washable.|【Custom Cutting】Accurate hole wide open offers full access to all ports, buttons and functions. Humanized texture design protects your remote from slipping and skidding.Fast heat dissipation and anti-dust that no fingerprints leave.|【Easy to Find/Glowing】Equiped with 4 different colors per set.when you have multiple remotes mixed together, Ability to quickly identify, which saves you a lot of time. The glow green and glow blue which has Luminous colors glow in the dark, Let you find your remote control at night quickly. Don't worry losing your remote control anymore.",
"img_link": "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/31dENZ1gQVL._SX300_SY300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Smashtronics%C2%AE-Silicone-Firestick-Control-Shockproof/dp/B09HK9JH4F/ref=sr_1_463?qid=1672909147&s=electronics&sr=1-463"
},
{
"product_id": "B09MMD1FDN",
"product_name": "7SEVEN® Suitable Sony Tv Remote Original Bravia for Smart Android Television Compatible for Any Model of LCD LED OLED UHD 4K Universal Sony Remote Control",
Expand Down Expand Up @@ -4900,19 +4874,6 @@
"img_link": "https://m.media-amazon.com/images/I/4105IiC5tDL._SY300_SX300_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/iQOO-Stellar-Snapdragon-Purchased-Separately/dp/B07WJV6P1R/ref=sr_1_47?qid=1672895755&s=electronics&sr=1-47"
},
{
"product_id": "B096MSW6CT",
"product_name": "Sounce Fast Phone Charging Cable & Data Sync USB Cable Compatible for iPhone 13, 12,11, X, 8, 7, 6, 5, iPad Air, Pro, Mini & iOS Devices",
"category": "Computers&Accessories|Accessories&Peripherals|Cables&Accessories|Cables|USBCables",
"discounted_price": 199.0,
"actual_price": 999.0,
"discount_percentage": 80.0,
"rating": 3.9,
"rating_count": 7928,
"about_product": "【 Fast Charger& Data Sync】-With built-in safety proctections and four-core copper wires promote maximum signal quality and strength and enhance charging & data transfer speed with up to 480 mb/s transferring speed.|【 Sturdy & Durable】-The jacket and enforced connector made of TPE and premium copper, are resistant to repeatedly bending and coiling.|【 Ultra High Quality】: According to the experimental results, the fishbone design can accept at least 20,000 bending and insertion tests for extra protection and durability. Upgraded 3D aluminum connector and exclusive laser welding technology, which to ensure the metal part won't break and also have a tighter connection which fits well even with a protective case on and will never loose connection.|【 Good After Sales Service】-Our friendly and reliable customer service will respond to you within 24 hours ! you can purchase with confidence,and every sale includes a 365-day worry-free Service to prove the importance we set on quality.",
"img_link": "https://m.media-amazon.com/images/I/31IvNJZnmdL._SY445_SX342_QL70_ML2_.jpg",
"product_link": "https://www.amazon.in/Sounce-iPhone-Charging-Compatible-Devices/dp/B096MSW6CT/ref=sr_1_48?qid=1672895755&s=electronics&sr=1-48"
},
{
"product_id": "B0BF54LXW6",
"product_name": "Fire-Boltt Ninja Call Pro Plus 1.83\" Smart Watch with Bluetooth Calling, AI Voice Assistance, 100 Sports Modes IP67 Rating, 240*280 Pixel High Resolution",
Expand Down Expand Up @@ -8059,19 +8020,6 @@
"img_link": "https://m.media-amazon.com/images/W/WEBP_402378-T2/images/I/31zOsqQOAOL._SY445_SX342_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Ambrane-Unbreakable-Charging-Braided-Cable/dp/B098NS6PVG/ref=sr_1_41?qid=1672902996&s=computers&sr=1-41"
},
{
"product_id": "B096MSW6CT",
"product_name": "Sounce Fast Phone Charging Cable & Data Sync USB Cable Compatible for iPhone 13, 12,11, X, 8, 7, 6, 5, iPad Air, Pro, Mini & iOS Devices",
"category": "Computers&Accessories|Accessories&Peripherals|Cables&Accessories|Cables|USBCables",
"discounted_price": 199.0,
"actual_price": 999.0,
"discount_percentage": 80.0,
"rating": 3.9,
"rating_count": 7928,
"about_product": "【 Fast Charger& Data Sync】-With built-in safety proctections and four-core copper wires promote maximum signal quality and strength and enhance charging & data transfer speed with up to 480 mb/s transferring speed.|【 Compatibility】-Compatible with iPhone 13, 12,11, X, 8, 7, 6, 5, iPad Air, Pro, Mini & iOS devices.|【 Sturdy & Durable】-The jacket and enforced connector made of TPE and premium copper, are resistant to repeatedly bending and coiling.|【 Ultra High Quality】: According to the experimental results, the fishbone design can accept at least 20,000 bending and insertion tests for extra protection and durability. Upgraded 3D aluminum connector and exclusive laser welding technology, which to ensure the metal part won't break and also have a tighter connection which fits well even with a protective case on and will never loose connection.|【 Good After Sales Service】-Our friendly and reliable customer service will respond to you within 24 hours ! you can purchase with confidence,and every sale includes a 365-day worry-free Service to prove the importance we set on quality.",
"img_link": "https://m.media-amazon.com/images/W/WEBP_402378-T1/images/I/31IvNJZnmdL._SY445_SX342_QL70_FMwebp_.jpg",
"product_link": "https://www.amazon.in/Sounce-iPhone-Charging-Compatible-Devices/dp/B096MSW6CT/ref=sr_1_42?qid=1672902996&s=computers&sr=1-42"
},
{
"product_id": "B09ZQK9X8G",
"product_name": "Noise ColorFit Pro 4 Advanced Bluetooth Calling Smart Watch with 1.72\" TruView Display, Fully-Functional Digital Crown, 311 PPI, 60Hz Refresh Rate, 500 NITS Brightness (Charcoal Black)",
Expand Down
36 changes: 36 additions & 0 deletions backend/data/refunds.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,41 @@
"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"
}
]
Loading
Loading