refactor: delete legacy models/database/customer.py

Update the last remaining import in storefront_pages.py to use
app.modules.customers.models, then delete the legacy re-export file.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-29 23:17:46 +01:00
parent 4cddd1a258
commit e8af9d5e9f
2 changed files with 1 additions and 24 deletions

View File

@@ -43,7 +43,7 @@ from app.api.deps import get_current_customer_from_cookie_or_header, get_db
from app.modules.cms.services import content_page_service
from app.services.platform_settings_service import platform_settings_service
from app.templates_config import templates
from models.database.customer import Customer
from app.modules.customers.models import Customer
router = APIRouter()

View File

@@ -1,23 +0,0 @@
# models/database/customer.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/customers/models/customer.py
This file exists to maintain backwards compatibility with code that
imports from the old location. All new code should import directly
from the module:
from app.modules.customers.models import Customer, CustomerAddress
"""
from app.modules.customers.models.customer import (
Customer,
CustomerAddress,
)
__all__ = [
"Customer",
"CustomerAddress",
]