Legacy model and schema files now re-export from module locations for backwards compatibility: models/database/: - letzshop.py -> app.modules.marketplace.models - marketplace_import_job.py -> app.modules.marketplace.models - marketplace_product.py -> app.modules.marketplace.models - marketplace_product_translation.py -> app.modules.marketplace.models - subscription.py -> app.modules.billing.models - architecture_scan.py -> app.modules.dev_tools.models - test_run.py -> app.modules.dev_tools.models models/schema/: - marketplace_import_job.py -> app.modules.marketplace.schemas - marketplace_product.py -> app.modules.marketplace.schemas - subscription.py -> app.modules.billing.schemas - stats.py -> app.modules.analytics.schemas This maintains import compatibility while moving actual code to self-contained modules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
# models/schema/subscription.py
|
|
"""
|
|
Legacy location for subscription schemas.
|
|
|
|
MIGRATED: All schemas have been moved to app.modules.billing.schemas.subscription.
|
|
|
|
New location:
|
|
from app.modules.billing.schemas import (
|
|
SubscriptionCreate,
|
|
SubscriptionResponse,
|
|
TierInfo,
|
|
)
|
|
|
|
This file re-exports from the new location for backward compatibility.
|
|
"""
|
|
|
|
# Re-export everything from the new canonical location
|
|
from app.modules.billing.schemas.subscription import (
|
|
# Tier schemas
|
|
TierFeatures,
|
|
TierLimits,
|
|
TierInfo,
|
|
# Subscription CRUD schemas
|
|
SubscriptionCreate,
|
|
SubscriptionUpdate,
|
|
SubscriptionResponse,
|
|
# Usage schemas
|
|
SubscriptionUsage,
|
|
UsageSummary,
|
|
SubscriptionStatusResponse,
|
|
# Limit check schemas
|
|
LimitCheckResult,
|
|
CanCreateOrderResponse,
|
|
CanAddProductResponse,
|
|
CanAddTeamMemberResponse,
|
|
FeatureCheckResponse,
|
|
)
|
|
|
|
__all__ = [
|
|
# Tier schemas
|
|
"TierFeatures",
|
|
"TierLimits",
|
|
"TierInfo",
|
|
# Subscription CRUD schemas
|
|
"SubscriptionCreate",
|
|
"SubscriptionUpdate",
|
|
"SubscriptionResponse",
|
|
# Usage schemas
|
|
"SubscriptionUsage",
|
|
"UsageSummary",
|
|
"SubscriptionStatusResponse",
|
|
# Limit check schemas
|
|
"LimitCheckResult",
|
|
"CanCreateOrderResponse",
|
|
"CanAddProductResponse",
|
|
"CanAddTeamMemberResponse",
|
|
"FeatureCheckResponse",
|
|
]
|