trading-platform-database-v2/ddl/schemas
Adrian Flores Cortes 3f7816d4ec feat(database): Add videos table for education module (ST4.3.1)
Table: education.videos

Features:
- Multipart upload tracking (upload_id, parts, progress)
- Storage integration (S3/R2/Cloudflare Stream)
- Video processing status (uploading → processing → ready)
- Transcoded versions JSONB (multiple resolutions)
- CDN URLs (video + thumbnail)
- Metadata JSONB (tags, language, difficulty, captions, transcript)
- Soft delete (deleted_at)
- GIN index for metadata search
- Helper functions (soft_delete_video)
- View for active videos

Constraints:
- Valid status enum
- Valid storage provider enum
- Positive file size & duration
- Progress 0-100%

Blocker: BLOCKER-003 (ST4.3 Video Upload Backend)
Epic: OQI-002

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 20:06:10 -06:00
..
audit feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
auth feat: Add DDL tables for notifications system 2026-01-25 03:48:28 -06:00
education feat(database): Add videos table for education module (ST4.3.1) 2026-01-26 20:06:10 -06:00
financial feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
investment feat: Add DDL tables for notifications system 2026-01-25 03:48:28 -06:00
llm feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
market_data feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
ml feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
portfolio [OQI-008] feat: Add portfolio DDL schema with tables for portfolios, allocations, goals 2026-01-25 08:20:48 -06:00
trading feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00