DeutschLernen/GermanApp
Lasse Rune Hansen ba81359afa fix(backend): update Lesson entity and related code to use LevelId foreign key
- Updated Lesson entity to use LevelId (int) instead of Level (int)
- Added navigation property Level (Level entity)
- Added Order, Topic, and IsActive properties to Lesson
- Updated Lesson.Create() factory method signature to accept levelId, title, order, topic, description
- Split Update method into individual property update methods
- Updated LessonDto to use LevelId, LevelName, LevelCode instead of Level int
- Added CreateLessonDto and UpdateLessonDto with all required fields
- Added UpdateFromDto extension method for Lesson
- Updated CreateLessonCommand to validate LevelId instead of Level
- Updated SeedDataExtension to seed Level entities first, then use new Lesson.Create() signature
- Made SeedDatabaseAsync async and updated Program.cs to await it
- Updated LessonsEndpoints to use GetByLevelAsync for beginner/advanced queries
- Fixed missing using directive for Domain.Entities

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-07 21:25:46 +02:00
..
Application fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00
Domain fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00
Infrastructure fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00
Presentation fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00
Properties Initial commit: GermanApp with Clean Architecture 2026-05-31 18:14:51 +02:00
Shared feat(backend/infra): add health checks, CORS, Serilog logging, and exception middleware 2026-05-31 19:52:00 +02:00
.dockerignore feat(backend/infra): add Docker configuration for Phase 3 2026-06-05 11:46:27 +02:00
appsettings.Development.json feat(backend/infra): configure PostgreSQL database for EF Core 2026-05-31 19:40:34 +02:00
appsettings.json feat(backend/auth): implement User Authentication feature 2026-06-05 13:27:43 +02:00
appsettings.Production.json feat(backend/infra): configure PostgreSQL database for EF Core 2026-05-31 19:40:34 +02:00
appsettings.Staging.json feat(backend/infra): configure PostgreSQL database for EF Core 2026-05-31 19:40:34 +02:00
Dockerfile fix(infra): remove problematic health checks for now 2026-06-05 13:03:10 +02:00
GermanApp.csproj feat(backend): complete unit tests for User Authentication feature 2026-06-05 17:07:15 +02:00
GermanApp.http Initial commit: GermanApp with Clean Architecture 2026-05-31 18:14:51 +02:00
Program.cs fix(backend): update Lesson entity and related code to use LevelId foreign key 2026-06-07 21:25:46 +02:00