trading-platform-database-v2/ddl/schemas/education/tables
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
..
01-categories.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
02-courses.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
03-modules.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
04-lessons.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
05-enrollments.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
06-progress.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
07-quizzes.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
08-quiz_questions.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
09-quiz_attempts.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
10-certificates.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
11-user_achievements.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
12-user_gamification_profile.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
13-user_activity_log.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
14-course_reviews.sql feat: Initial commit - Database schemas and scripts 2026-01-18 04:30:23 -06:00
15-videos.sql feat(database): Add videos table for education module (ST4.3.1) 2026-01-26 20:06:10 -06:00