- Add Conversation, ConversationParticipant, Message, MessageAttachment models - Add ConversationType enum (admin_vendor, vendor_customer, admin_customer) - Add ParticipantType enum (admin, vendor, customer) - Add Alembic migration for messaging tables - Add MessagingService for conversation/message operations - Add MessageAttachmentService for file upload handling - Add message-related exceptions (ConversationNotFoundException, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
507 B
Python
29 lines
507 B
Python
# models/schema/__init__.py
|
|
"""API models package - Pydantic models for request/response validation."""
|
|
|
|
# Import API model modules
|
|
from . import (
|
|
auth,
|
|
base,
|
|
inventory,
|
|
marketplace_import_job,
|
|
marketplace_product,
|
|
message,
|
|
stats,
|
|
vendor,
|
|
)
|
|
|
|
# Common imports for convenience
|
|
from .base import * # Base Pydantic models
|
|
|
|
__all__ = [
|
|
"base",
|
|
"auth",
|
|
"marketplace_product",
|
|
"message",
|
|
"inventory",
|
|
"vendor",
|
|
"marketplace_import_job",
|
|
"stats",
|
|
]
|