trading-platform-database-v2/ddl/schemas/trading/tables
Adrian Flores Cortes 6da2786590 [TASK-2026-02-03-ANALISIS-DDL-MODELADO] feat(ddl): FASE-3 Moderate P1 gaps
ST-3.1: Course tags system
- education.course_tags with slug, color, featured flag
- education.course_tag_assignments (M:N) with auto usage_count
- Seeds: 10 initial tags (forex, crypto, ICT, etc.)

ST-3.2: Drawing tools for charts
- Enum: trading.drawing_tool_type (18 types including ICT)
- trading.drawing_tools with JSONB points and styles
- trading.drawing_templates for reusable presets

ST-3.3: Complete agent_executions
- Added 10 columns: execution_time_ms, slippage, risk_score, etc.
- 5 new performance indexes
- Trigger for updated_at

ST-3.4: ML composite indexes
- 8 new composite/partial indexes for predictions
- Optimized for symbol+timeframe+date queries
- Partial indexes for high confidence and overlay display

New files: 7 DDL, 2 migrations, 1 seed
Modified: 3 existing DDL files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 23:55:24 -06:00
..
01-symbols.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
02-watchlists.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
03-watchlist_items.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
04-bots.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
05-orders.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
06-positions.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
07-trades.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
08-signals.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
09-trading_metrics.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
10-paper_balances.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
11-price_alerts.sql [TASK-2026-02-03-ANALISIS-DDL-MODELADO] feat(ddl): FASE-1 Gaps Críticos P0 2026-02-03 23:45:39 -06:00
12-drawing_tools.sql [TASK-2026-02-03-ANALISIS-DDL-MODELADO] feat(ddl): FASE-3 Moderate P1 gaps 2026-02-03 23:55:24 -06:00
13-drawing_templates.sql [TASK-2026-02-03-ANALISIS-DDL-MODELADO] feat(ddl): FASE-3 Moderate P1 gaps 2026-02-03 23:55:24 -06:00