Skip to content

Commit

Permalink
feat: Add sample data for segments field in video metadata seed script (
Browse files Browse the repository at this point in the history
  • Loading branch information
IkramBagban authored Dec 11, 2024
1 parent 15cb707 commit b8df755
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ async function seedVideoMetadata() {
video_360p_4: 'https://www.w3schools.com/html/mov_bbb.mp4',
slides:
'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/slides/Loops%2C+callbacks.pdf',
segments: [
{ title: "Introduction", start: 0, end: 3 },
{ title: "Chapter 1", start: 3, end: 7 },
{ title: "Conclusion", start: 7, end: 10 }
]
},
});
} catch (error) {
Expand Down

0 comments on commit b8df755

Please sign in to comment.