
- Auto language detection using OpenAI Whisper during video upload
- Editable transcript interface for reviewing/correcting transcriptions
- Updated translation pipeline to use edited transcripts when available
- Migrated from JWT to Google OAuth-only authentication for better security
- Added complete Docker containerization with docker-compose.yml
- Updated database schema with language detection and transcript editing fields
- Enhanced API documentation and workflow in README
- Added comprehensive environment variable configuration
🤖 Generated with BackendIM
Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
603 B
Python
14 lines
603 B
Python
from sqlalchemy import Column, Integer, DateTime, ForeignKey, Text, Boolean
|
|
from sqlalchemy.sql import func
|
|
from app.db.base import Base
|
|
|
|
|
|
class Transcription(Base):
|
|
__tablename__ = "transcriptions"
|
|
|
|
id = Column(Integer, primary_key=True, index=True)
|
|
video_id = Column(Integer, ForeignKey("videos.id"), nullable=False)
|
|
text = Column(Text, nullable=False)
|
|
edited_text = Column(Text, nullable=True) # User-edited transcript
|
|
is_edited = Column(Boolean, default=False) # Track if transcript was edited
|
|
created_at = Column(DateTime(timezone=True), server_default=func.now()) |