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:
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user