feat: add web STT app with admin CRUD

FastAPI 기반 업로드/전사(job) API와 취소/진행률 UI를 추가하고,
PostgreSQL(ncue_stt) 저장 및 웹 관리(조회/수정/삭제) 화면을 포함합니다.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dsyoon
2026-02-09 18:31:30 +09:00
commit 42feb4a0fa
10 changed files with 1805 additions and 0 deletions

21
sql/create_ncue_stt.sql Normal file
View File

@@ -0,0 +1,21 @@
-- ncue_stt 테이블 생성 (PostgreSQL)
-- 주의: 테이블명은 .env의 TABLE 값과 동일해야 합니다.
CREATE TABLE IF NOT EXISTS ncue_stt (
id BIGSERIAL PRIMARY KEY,
author_id TEXT NOT NULL,
filename TEXT,
language_requested TEXT,
detected_language TEXT,
language_probability DOUBLE PRECISION,
duration_sec DOUBLE PRECISION,
status TEXT NOT NULL DEFAULT 'completed',
text TEXT NOT NULL DEFAULT '',
segments JSONB NOT NULL DEFAULT '[]'::jsonb,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS ncue_stt_author_id_idx ON ncue_stt(author_id);
CREATE INDEX IF NOT EXISTS ncue_stt_created_at_idx ON ncue_stt(created_at DESC);