Skip to content

Commit b8df755

Browse files
authored
feat: Add sample data for segments field in video metadata seed script (#1638) (#1639)
1 parent 15cb707 commit b8df755

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

prisma/seed.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ async function seedVideoMetadata() {
211211
video_360p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
212212
slides:
213213
'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/slides/Loops%2C+callbacks.pdf',
214+
segments: [
215+
{ title: "Introduction", start: 0, end: 3 },
216+
{ title: "Chapter 1", start: 3, end: 7 },
217+
{ title: "Conclusion", start: 7, end: 10 }
218+
]
214219
},
215220
});
216221
} catch (error) {

0 commit comments

Comments
 (0)