File can be found at server/api/routers/lecture.ts
Create the following endpoints:
createNewLecture that takes in necessary input (check Railway or schema.prisma file to see what all columns the table needs) and creates a new entry in Lecture table based on input
deleteLectureById - this takes in just the lectureId as input and then deletes the entry using Prisma
Check Student and AttendanceRecord router files for hints.
File can be found at
server/api/routers/lecture.ts
Create the following endpoints:
createNewLecture
that takes in necessary input (check Railway orschema.prisma
file to see what all columns the table needs) and creates a new entry in Lecture table based on inputdeleteLectureById
- this takes in just thelectureId
as input and then deletes the entry using PrismaCheck Student and AttendanceRecord router files for hints.