Skip to content

feat: Implement database schema and video entity with TypeORM (Day 3-4) - #2

Merged
GiorgiZanqaidze merged 7 commits into
mainfrom
feature/database-video-entity
Dec 10, 2025
Merged

feat: Implement database schema and video entity with TypeORM (Day 3-4)#2
GiorgiZanqaidze merged 7 commits into
mainfrom
feature/database-video-entity

Conversation

@GiorgiZanqaidze

Copy link
Copy Markdown
Contributor

Reviewing the branch to summarize changes for the merge request:

[5 tools called]

Merge Request Title

feat: Implement database schema and video entity with TypeORM (Day 3-4)

Merge Request Description

Implements Day 3-4 deliverables: PostgreSQL database schema, Video entity with status tracking, and database connection.

### Changes
- ✅ Configured TypeORM with PostgreSQL in app.module.ts
- ✅ Created Video entity with UUID, status enum, and required fields
- ✅ Implemented VideosModule and VideosService with full CRUD operations
- ✅ Added Swagger documentation for API endpoints
- ✅ Created test endpoints for video upload and retrieval
- ✅ Added comprehensive logging to VideosService

### Files Added
- `apps/api/src/app/videos/entities/video.entity.ts` - Video entity with status enum
- `apps/api/src/app/videos/videos.module.ts` - Videos feature module
- `apps/api/src/app/videos/videos.service.ts` - CRUD service with logging
- `apps/api/src/app/videos/dto/create-video.dto.ts` - DTO for video creation
- `apps/api/src/app/videos/dto/upload-video.dto.ts` - DTO for file uploads

### Files Modified
- `apps/api/src/app/app.module.ts` - Added TypeORM configuration and VideosModule
- `apps/api/src/app/app.controller.ts` - Added test endpoints with Swagger docs
- `apps/api/src/main.ts` - Added Swagger UI configuration

### Status Enum
UPLOADING → UPLOADED → QUEUED → PROCESSING → COMPLETED/FAILED

### Testing
- Database connection verified
- Test endpoints available at `/api/test-video` (POST) and `/api/test-videos` (GET)
- Swagger UI available at `/api/docs`

### Next Steps
- Day 5-6: MinIO Storage Service implementation
- Day 7: Streaming upload endpoint with busboy

@nx-cloud

nx-cloud Bot commented Dec 10, 2025

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 7ee9723

Command Status Duration Result
nx run-many -t lint test build ✅ Succeeded 9s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-10 18:52:09 UTC

@GiorgiZanqaidze GiorgiZanqaidze self-assigned this Dec 10, 2025
@GiorgiZanqaidze GiorgiZanqaidze added the enhancement New feature or request label Dec 10, 2025
@GiorgiZanqaidze
GiorgiZanqaidze merged commit 25b19d0 into main Dec 10, 2025
1 check passed
@GiorgiZanqaidze
GiorgiZanqaidze deleted the feature/database-video-entity branch December 10, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant