MCPcopy Create free account
hub / github.com/code100x/cms / seedCourses

Function seedCourses

prisma/seed.ts:36–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36async function seedCourses() {
37 const courses = [
38 {
39 id: 1,
40 appxCourseId: '1',
41 discordRoleId: '2',
42 title: 'test course 1',
43 imageUrl:
44 'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/images/test1.png',
45 description: 'test course 1',
46 openToEveryone: false,
47 slug: 'test-course-1',
48 },
49 {
50 id: 2,
51 appxCourseId: '2',
52 discordRoleId: '3',
53 title: 'test course 2',
54 imageUrl:
55 'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/images/test2.png',
56 description: 'test course 2',
57 openToEveryone: false,
58 slug: 'test-course-2',
59 },
60 {
61 id: 3,
62 appxCourseId: '2',
63 discordRoleId: '3',
64 title: 'test course 2',
65 imageUrl:
66 'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/images/test2.png',
67 description: 'test course 2',
68 openToEveryone: false,
69 slug: 'test-course-2',
70 },
71 {
72 id: 4,
73 appxCourseId: '2',
74 discordRoleId: '3',
75 title: 'test course 2',
76 imageUrl:
77 'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/images/test2.png',
78 description: 'test course 2',
79 openToEveryone: false,
80 slug: 'test-course-2',
81 },
82 {
83 id: 5,
84 appxCourseId: '2',
85 discordRoleId: '3',
86 title: 'test course 2',
87 imageUrl:
88 'https://appx-recordings.s3.ap-south-1.amazonaws.com/drm/100x/images/test2.png',
89 description: 'test course 2',
90 openToEveryone: false,
91 slug: 'test-course-2',
92 },
93 ];

Callers 1

seedDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected