Phase 1 - Analytics y Reportes: - PostMetrics and AnalyticsReport models for tracking engagement - Analytics service with dashboard stats, top posts, optimal times - 8 API endpoints at /api/analytics/* - Interactive dashboard with Chart.js charts - Celery tasks for metrics fetch (15min) and weekly reports Phase 2 - Integración Odoo: - Lead and OdooSyncLog models for CRM integration - Odoo fields added to Product and Service models - XML-RPC service for bidirectional sync - Lead management API at /api/leads/* - Leads dashboard template - Celery tasks for product/service sync and lead export Phase 3 - A/B Testing y Recycling: - ABTest, ABTestVariant, RecycledPost models - Statistical winner analysis using chi-square test - Content recycling with engagement-based scoring - APIs at /api/ab-tests/* and /api/recycling/* - Automated test evaluation and content recycling tasks Phase 4 - Thread Series y Templates: - ThreadSeries and ThreadPost models for multi-post threads - AI-powered thread generation - Enhanced ImageTemplate with HTML template support - APIs at /api/threads/* and /api/templates/* - Thread scheduling with reply chain support Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
43 lines
1.1 KiB
Python
43 lines
1.1 KiB
Python
"""
|
|
Modelos de base de datos SQLAlchemy.
|
|
"""
|
|
|
|
from app.core.database import Base
|
|
|
|
from app.models.user import User
|
|
from app.models.product import Product
|
|
from app.models.service import Service
|
|
from app.models.tip_template import TipTemplate
|
|
from app.models.post import Post
|
|
from app.models.content_calendar import ContentCalendar
|
|
from app.models.image_template import ImageTemplate
|
|
from app.models.interaction import Interaction
|
|
from app.models.post_metrics import PostMetrics
|
|
from app.models.analytics_report import AnalyticsReport
|
|
from app.models.lead import Lead
|
|
from app.models.odoo_sync_log import OdooSyncLog
|
|
from app.models.ab_test import ABTest, ABTestVariant
|
|
from app.models.recycled_post import RecycledPost
|
|
from app.models.thread_series import ThreadSeries, ThreadPost
|
|
|
|
__all__ = [
|
|
"Base",
|
|
"User",
|
|
"Product",
|
|
"Service",
|
|
"TipTemplate",
|
|
"Post",
|
|
"ContentCalendar",
|
|
"ImageTemplate",
|
|
"Interaction",
|
|
"PostMetrics",
|
|
"AnalyticsReport",
|
|
"Lead",
|
|
"OdooSyncLog",
|
|
"ABTest",
|
|
"ABTestVariant",
|
|
"RecycledPost",
|
|
"ThreadSeries",
|
|
"ThreadPost"
|
|
]
|