refactor: migrate project from Flask to Next.js with TypeScript, Prisma, and Edge TTS integration

This commit is contained in:
2026-09-03 00:16:04 -07:00
parent 84f79dc5f9
commit f033a6045c
60 changed files with 5340 additions and 2179 deletions
+38
View File
@@ -0,0 +1,38 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
model Episode {
id String @id @default(cuid())
title String
originalContent String
scriptContent String?
mode String @default("VERBATIM") // VERBATIM | FEYNMAN | DUAL_HOST
status String @default("PENDING") // PENDING | PROCESSING | READY | FAILED
errorMessage String?
durationSeconds Float?
audioUrl String?
timingsJson String? // Serialized array of cues / timestamps [{text, startTime, endTime, speaker}]
stages StageItem[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model StageItem {
id String @id @default(cuid())
episodeId String
timestampSeconds Float
type String // IMAGE | CODE | CALLOUT
title String?
content String // Image URL, Code snippet, or Callout text
caption String?
episode Episode @relation(fields: [episodeId], references: [id], onDelete: Cascade)
createdAt DateTime @default(now())
}