Files
teaching-feedback-assistant/server/migrations/0003_async_transcription_jobs.sql
shay7sev afdfa8bcf7 chore: merge Rust backend into monorepo
git-subtree-dir: server
git-subtree-mainline: fb6a84d75f
git-subtree-split: 8a88706ff9
2026-07-20 10:50:48 +08:00

9 lines
297 B
SQL

ALTER TABLE audio_segments
ADD COLUMN transcription_attempts INTEGER NOT NULL DEFAULT 0
CHECK (transcription_attempts >= 0),
ADD COLUMN processing_started_at TIMESTAMPTZ;
CREATE INDEX audio_segments_processing_queue_idx
ON audio_segments (created_at, id)
WHERE status = 'processing';