feat: automatically creates lessons when creating a course
Description
Create 3 months of lessons when creating a course. Fix create lesson so that the course, teacher and lesson plan are correctly mapped in lesson entity. Change lesson fields to be nullable.
Issues
Steps to Test
Lesson database after creating a course (id 1), automatically created lessons with id 1-12. Lesson id 13 is the one using the create lesson endpoint, with the entities mapped correctly.
Checklist (reviewers)
- Code review
- Manual test (if applicable)
- Tests added (if applicable)
- Documentation reviewed