refactor: delete legacy re-export files for migrated modules

All imports have been updated to use canonical module locations.
Delete 15 legacy re-export files that are no longer needed:

Database models (7 files):
- models/database/order.py
- models/database/inventory.py
- models/database/inventory_transaction.py
- models/database/message.py
- models/database/invoice.py
- models/database/order_item_exception.py
- models/database/password_reset_token.py

Schema models (8 files):
- models/schema/customer.py
- models/schema/order.py
- models/schema/order_item_exception.py
- models/schema/inventory.py
- models/schema/message.py
- models/schema/invoice.py
- models/schema/notification.py
- models/schema/stats.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 09:03:38 +01:00
parent 4adc35a674
commit a55eb78c64
16 changed files with 1 additions and 835 deletions

View File

@@ -1,19 +0,0 @@
# models/database/inventory.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/inventory/models/inventory.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.inventory.models import Inventory
"""
from app.modules.inventory.models.inventory import Inventory
__all__ = [
"Inventory",
]

View File

@@ -1,23 +0,0 @@
# models/database/inventory_transaction.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/inventory/models/inventory_transaction.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.inventory.models import InventoryTransaction, TransactionType
"""
from app.modules.inventory.models.inventory_transaction import (
InventoryTransaction,
TransactionType,
)
__all__ = [
"InventoryTransaction",
"TransactionType",
]

View File

@@ -1,27 +0,0 @@
# models/database/invoice.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/orders/models/invoice.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.orders.models import Invoice, InvoiceStatus, VATRegime, VendorInvoiceSettings
"""
from app.modules.orders.models.invoice import (
Invoice,
InvoiceStatus,
VATRegime,
VendorInvoiceSettings,
)
__all__ = [
"Invoice",
"InvoiceStatus",
"VATRegime",
"VendorInvoiceSettings",
]

View File

@@ -1,31 +0,0 @@
# models/database/message.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/messaging/models/message.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.messaging.models import message
"""
from app.modules.messaging.models.message import (
Conversation,
ConversationParticipant,
ConversationType,
Message,
MessageAttachment,
ParticipantType,
)
__all__ = [
"Conversation",
"ConversationParticipant",
"ConversationType",
"Message",
"MessageAttachment",
"ParticipantType",
]

View File

@@ -1,20 +0,0 @@
# models/database/order.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/orders/models/order.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.orders.models import Order, OrderItem
"""
from app.modules.orders.models.order import Order, OrderItem
__all__ = [
"Order",
"OrderItem",
]

View File

@@ -1,19 +0,0 @@
# models/database/order_item_exception.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/orders/models/order_item_exception.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.orders.models import OrderItemException
"""
from app.modules.orders.models.order_item_exception import OrderItemException
__all__ = [
"OrderItemException",
]

View File

@@ -1,19 +0,0 @@
# models/database/password_reset_token.py
"""
LEGACY LOCATION - Re-exports from module for backwards compatibility.
The canonical implementation is now in:
app/modules/customers/models/password_reset_token.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 PasswordResetToken
"""
from app.modules.customers.models.password_reset_token import PasswordResetToken
__all__ = [
"PasswordResetToken",
]