Counts all lectures.
A promise that resolves to the number of lectures.
Deletes a lecture by its ID.
The ID of the lecture.
A promise that resolves when the deletion is complete.
Fetches all lectures.
A promise that resolves to an array of lectures.
Fetches all lectures by teacher ID.
A promise that resolves to an array of lectures.
Finds a lecture by its ID and gets all users in the linked course.
The ID of the lecture.
A promise that resolves to an array of RowDataPacket.
Finds lectures by topic ID.
The ID of the topic.
A promise that resolves to an array of lectures.
Finds open lectures by course ID.
The ID of the course.
A promise that resolves to an array of open lectures for the course, if found.
Finds open lectures by teacher ID.
The ID of the teacher.
A promise that resolves to an array of open lectures for the teacher, if found.
Gets the course ID by lecture ID.
The ID of the lecture.
A promise that resolves to the ID of the course linked to the lecture.
Gets the course ID by lecture ID.
The ID of the lecture.
A promise that resolves to the ID of the course linked to the lecture.
Gets a lecture by its ID.
The ID of the lecture.
A promise that resolves to the lecture, if found.
Gets lectures by course ID.
The ID of the course.
A promise that resolves to an array of lectures for the course, if found.
Gets a lecture with its course and topic.
The ID of the lecture.
A promise that resolves to the lecture with its course and topic, if found.
Gets past lectures by course ID.
The ID of the course.
A promise that resolves to an array of past lectures for the course, if found.
Gets students by lecture ID.
The ID of the lecture.
A promise that resolves to an array of RowDataPacket.
Inserts a lecture.
The start date of the lecture.
The end date of the lecture.
The time of day of the lecture.
The ID of the topic.
The ID of the course.
The state of the lecture.
The ID of the teacher.
A promise that resolves when the insertion is complete.
Updates the state of a lecture.
The ID of the lecture.
The new state of the lecture.
A promise that resolves when the update is complete.
Interface for LectureModel.