- Add full-text product search in ProductService.search_products() searching titles, descriptions, SKUs, brands, and GTINs - Implement complete vendor media library with file uploads, thumbnails, folders, and product associations - Implement vendor customers API with listing, details, orders, statistics, and status management - Add shop search results UI with pagination and add-to-cart - Add vendor media library UI with drag-drop upload and grid view - Add database migration for media_files and product_media tables - Update TODO file with current launch status (~95% complete) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
183 lines
4.4 KiB
Python
183 lines
4.4 KiB
Python
# models/database/__init__.py
|
|
"""Database models package."""
|
|
|
|
from .admin import (
|
|
AdminAuditLog,
|
|
AdminNotification,
|
|
AdminSession,
|
|
AdminSetting,
|
|
PlatformAlert,
|
|
)
|
|
from .architecture_scan import (
|
|
ArchitectureScan,
|
|
ArchitectureViolation,
|
|
ViolationAssignment,
|
|
ViolationComment,
|
|
)
|
|
from .base import Base
|
|
from .company import Company
|
|
from .content_page import ContentPage
|
|
from .customer import Customer, CustomerAddress
|
|
from .password_reset_token import PasswordResetToken
|
|
from .email import EmailCategory, EmailLog, EmailStatus, EmailTemplate
|
|
from .vendor_email_template import VendorEmailTemplate
|
|
from .vendor_email_settings import EmailProvider, VendorEmailSettings, PREMIUM_EMAIL_PROVIDERS
|
|
from .feature import Feature, FeatureCategory, FeatureCode, FeatureUILocation
|
|
from .inventory import Inventory
|
|
from .inventory_transaction import InventoryTransaction, TransactionType
|
|
from .invoice import (
|
|
Invoice,
|
|
InvoiceStatus,
|
|
VATRegime,
|
|
VendorInvoiceSettings,
|
|
)
|
|
from .letzshop import (
|
|
LetzshopFulfillmentQueue,
|
|
LetzshopHistoricalImportJob,
|
|
LetzshopSyncLog,
|
|
VendorLetzshopCredentials,
|
|
)
|
|
from .marketplace_import_job import MarketplaceImportError, MarketplaceImportJob
|
|
from .message import (
|
|
Conversation,
|
|
ConversationParticipant,
|
|
ConversationType,
|
|
Message,
|
|
MessageAttachment,
|
|
ParticipantType,
|
|
)
|
|
from .marketplace_product import (
|
|
DigitalDeliveryMethod,
|
|
MarketplaceProduct,
|
|
ProductType,
|
|
)
|
|
from .media import MediaFile, ProductMedia
|
|
from .marketplace_product_translation import MarketplaceProductTranslation
|
|
from .onboarding import OnboardingStatus, OnboardingStep, VendorOnboarding
|
|
from .order import Order, OrderItem
|
|
from .order_item_exception import OrderItemException
|
|
from .product import Product
|
|
from .product_translation import ProductTranslation
|
|
from .subscription import (
|
|
AddOnCategory,
|
|
AddOnProduct,
|
|
BillingHistory,
|
|
BillingPeriod,
|
|
StripeWebhookEvent,
|
|
SubscriptionStatus,
|
|
SubscriptionTier,
|
|
TierCode,
|
|
TIER_LIMITS,
|
|
VendorAddOn,
|
|
VendorSubscription,
|
|
)
|
|
from .test_run import TestCollection, TestResult, TestRun
|
|
from .user import User
|
|
from .vendor import Role, Vendor, VendorUser
|
|
from .vendor_domain import VendorDomain
|
|
from .vendor_theme import VendorTheme
|
|
|
|
__all__ = [
|
|
# Admin-specific models
|
|
"AdminAuditLog",
|
|
"AdminNotification",
|
|
"AdminSetting",
|
|
"PlatformAlert",
|
|
"AdminSession",
|
|
# Architecture/Code Quality
|
|
"ArchitectureScan",
|
|
"ArchitectureViolation",
|
|
"ViolationAssignment",
|
|
"ViolationComment",
|
|
# Test Runs
|
|
"TestRun",
|
|
"TestResult",
|
|
"TestCollection",
|
|
# Base
|
|
"Base",
|
|
# User & Auth
|
|
"User",
|
|
# Company & Vendor
|
|
"Company",
|
|
"Vendor",
|
|
"VendorUser",
|
|
"Role",
|
|
"VendorDomain",
|
|
"VendorTheme",
|
|
# Content
|
|
"ContentPage",
|
|
# Customer & Auth
|
|
"Customer",
|
|
"CustomerAddress",
|
|
"PasswordResetToken",
|
|
# Email
|
|
"EmailCategory",
|
|
"EmailLog",
|
|
"EmailStatus",
|
|
"EmailTemplate",
|
|
"VendorEmailTemplate",
|
|
"VendorEmailSettings",
|
|
"EmailProvider",
|
|
"PREMIUM_EMAIL_PROVIDERS",
|
|
# Features
|
|
"Feature",
|
|
"FeatureCategory",
|
|
"FeatureCode",
|
|
"FeatureUILocation",
|
|
# Product - Enums
|
|
"ProductType",
|
|
"DigitalDeliveryMethod",
|
|
# Product - Models
|
|
"MarketplaceProduct",
|
|
"MarketplaceProductTranslation",
|
|
"Product",
|
|
"ProductTranslation",
|
|
# Import
|
|
"MarketplaceImportJob",
|
|
"MarketplaceImportError",
|
|
# Inventory
|
|
"Inventory",
|
|
"InventoryTransaction",
|
|
"TransactionType",
|
|
# Media
|
|
"MediaFile",
|
|
"ProductMedia",
|
|
# Invoicing
|
|
"Invoice",
|
|
"InvoiceStatus",
|
|
"VATRegime",
|
|
"VendorInvoiceSettings",
|
|
# Orders
|
|
"Order",
|
|
"OrderItem",
|
|
"OrderItemException",
|
|
# Letzshop Integration
|
|
"VendorLetzshopCredentials",
|
|
"LetzshopFulfillmentQueue",
|
|
"LetzshopSyncLog",
|
|
"LetzshopHistoricalImportJob",
|
|
# Subscription & Billing
|
|
"VendorSubscription",
|
|
"SubscriptionStatus",
|
|
"SubscriptionTier",
|
|
"TierCode",
|
|
"TIER_LIMITS",
|
|
"AddOnProduct",
|
|
"AddOnCategory",
|
|
"BillingPeriod",
|
|
"VendorAddOn",
|
|
"BillingHistory",
|
|
"StripeWebhookEvent",
|
|
# Messaging
|
|
"Conversation",
|
|
"ConversationParticipant",
|
|
"ConversationType",
|
|
"Message",
|
|
"MessageAttachment",
|
|
"ParticipantType",
|
|
# Onboarding
|
|
"OnboardingStatus",
|
|
"OnboardingStep",
|
|
"VendorOnboarding",
|
|
]
|