@@ -0,0 +1,5 @@
|
||||
ALTER TABLE "VideoTranscript"
|
||||
ADD COLUMN "content_tags" TEXT[] NOT NULL DEFAULT ARRAY[]::TEXT[];
|
||||
|
||||
CREATE INDEX "video_transcript_content_tags_idx"
|
||||
ON "VideoTranscript" USING GIN ("content_tags");
|
||||
@@ -145,11 +145,13 @@ model VideoTranscript {
|
||||
audio_type String?
|
||||
transcript String[]
|
||||
non_speech_summary String?
|
||||
content_tags String[] @default([])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
transcript_zh_tsv Unsupported("tsvector")?
|
||||
video Video @relation(fields: [videoId], references: [aweme_id], onDelete: Cascade)
|
||||
|
||||
@@index([videoId])
|
||||
@@index([content_tags], map: "video_transcript_content_tags_idx", type: Gin)
|
||||
@@index([transcript_zh_tsv], map: "video_transcript_zh_idx", type: Gin)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user