Schüler hinzufügen, Kompetenzen

This commit is contained in:
2026-06-23 13:46:39 +02:00
parent b2211270b4
commit 220969fdfa
23 changed files with 1230 additions and 88 deletions
+21
View File
@@ -0,0 +1,21 @@
namespace LehrerApp.Core.Models;
public class CompetencyDomain
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid SubjectId { get; set; }
public int GradeLevel { get; set; }
public string Name { get; set; } = "";
public string Code { get; set; } = "";
public int SortOrder { get; set; }
public List<CompetencyItem> Items { get; set; } = [];
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
public class CompetencyItem
{
public Guid Id { get; set; } = Guid.NewGuid();
public string Code { get; set; } = "";
public string Description { get; set; } = "";
public int SortOrder { get; set; }
}
+9 -5
View File
@@ -6,6 +6,7 @@ public class LearningGroup
public string Name { get; set; } = "";
public GroupType Type { get; set; }
public string? Subject { get; set; }
public Guid? SubjectId { get; set; }
public string SchoolYear { get; set; } = "";
public int GradeLevel { get; set; }
public GradingSystem GradingSystem { get; set; }
@@ -15,12 +16,15 @@ public class LearningGroup
}
public class Enrollment
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid StudentId { get; set; }
public Guid GroupId { get; set; }
public Guid Id { get; set; } = Guid.NewGuid();
public Guid StudentId { get; set; }
public Guid GroupId { get; set; }
public string SchoolYear { get; set; } = "";
public DateOnly EnrolledAt { get; set; } = DateOnly.FromDateTime(DateTime.Today);
public DateOnly? LeftAt { get; set; }
public DateOnly EnrolledAt { get; set; } = DateOnly.FromDateTime(DateTime.Today);
public EnrollmentPeriod Period { get; set; } = EnrollmentPeriod.FullYear;
public DateOnly? JoinedAt { get; set; }
public DateOnly? LeftAt { get; set; }
}
public enum EnrollmentPeriod { FullYear, H1Only, H2Only, Custom }
public enum GroupType { Class, Course }
public enum GradingSystem { Grades1To6, Points0To15 }
+9 -1
View File
@@ -7,6 +7,7 @@ public class ParticipationSession
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Today);
public Guid? LessonId { get; set; }
public string? Comment { get; set; }
public List<string> CompetencyCodes { get; set; } = [];
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
@@ -18,11 +19,18 @@ public class ParticipationEntry
public Guid GroupId { get; set; }
public Guid StudentId { get; set; }
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Today);
public List<AspectRating> Ratings { get; set; } = [];
public List<AspectRating> Ratings { get; set; } = [];
public List<CompetencyRating> CompetencyRatings { get; set; } = [];
public string? Note { get; set; }
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}
public class CompetencyRating
{
public string Code { get; set; } = "";
public int Value { get; set; }
}
public class AspectRating
{
public string Key { get; set; } = "";
+9
View File
@@ -0,0 +1,9 @@
namespace LehrerApp.Core.Models;
public class Subject
{
public Guid Id { get; set; } = Guid.NewGuid();
public string Name { get; set; } = "";
public string ShortName { get; set; } = "";
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
}