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 committed Dec 8, 2024
1 parent ff3bda3 commit 6a49431
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 6a49431

Please sign in to comment.