From 7437c70249fbaabeece1584c81d1cb3440161736 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Thu, 29 Jan 2026 23:18:45 +0100 Subject: [PATCH] refactor: delete legacy models/database/cart.py Update import in alembic/env.py to use app.modules.cart.models, then delete the legacy re-export file. Co-Authored-By: Claude Opus 4.5 --- alembic/env.py | 2 +- models/database/cart.py | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 models/database/cart.py diff --git a/alembic/env.py b/alembic/env.py index 3f40b9b3..a6f45d88 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -157,7 +157,7 @@ except ImportError as e: # CART MODELS # ---------------------------------------------------------------------------- try: - from models.database.cart import CartItem + from app.modules.cart.models import CartItem print(" ✓ Cart models imported (1 model)") print(" - CartItem") diff --git a/models/database/cart.py b/models/database/cart.py deleted file mode 100644 index 20ea0b16..00000000 --- a/models/database/cart.py +++ /dev/null @@ -1,13 +0,0 @@ -# models/database/cart.py -""" -LEGACY LOCATION - This file re-exports from the canonical module location. - -Canonical location: app/modules/cart/models/ - -This file exists for backward compatibility. New code should import from: - from app.modules.cart.models import CartItem -""" - -from app.modules.cart.models.cart import CartItem - -__all__ = ["CartItem"]