Add specific weeks of disciplines #10

Merged
Wesser merged 7 commits from feat/improved-sugroup into release/v1.0.0 2024-05-19 13:57:09 +03:00
4 changed files with 15 additions and 4 deletions
Showing only changes of commit 05dadff455 - Show all commits

View File

@ -9,13 +9,13 @@ public class Lesson
public bool IsEven { get; set; } public bool IsEven { get; set; }
public DayOfWeek DayOfWeek { get; set; } public DayOfWeek DayOfWeek { get; set; }
public int PairNumber { get; set; } public int PairNumber { get; set; }
public bool? IsExcludedWeeks { get; set; }
public int GroupId { get; set; } public int GroupId { get; set; }
public Group? Group { get; set; } public Group? Group { get; set; }
public int TypeOfOccupationId { get; set; }
public TypeOfOccupation? TypeOfOccupation { get; set; }
public int DisciplineId { get; set; } public int DisciplineId { get; set; }
public Discipline? Discipline { get; set; } public Discipline? Discipline { get; set; }
public List<LessonAssociation>? LessonAssociations { get; set; } public List<LessonAssociation>? LessonAssociations { get; set; }
public List<SpecificWeek>? SpecificWeeks { get; set; }
} }

View File

@ -5,6 +5,8 @@ public class LessonAssociation
public int Id { get; set; } public int Id { get; set; }
public string? LinkToMeet { get; set; } public string? LinkToMeet { get; set; }
public int TypeOfOccupationId { get; set; }
public TypeOfOccupation? TypeOfOccupation { get; set; }
public int LessonId { get; set; } public int LessonId { get; set; }
public Lesson? Lesson { get; set; } public Lesson? Lesson { get; set; }
public int? ProfessorId { get; set; } public int? ProfessorId { get; set; }

View File

@ -0,0 +1,10 @@
namespace Mirea.Api.DataAccess.Domain.Schedule;
public class SpecificWeek
{
public int Id { get; set; }
public int WeekNumber { get; set; }
public int LessonId { get; set; }
public Lesson? Lesson { get; set; }
}

View File

@ -6,7 +6,6 @@ public class TypeOfOccupation
{ {
public int Id { get; set; } public int Id { get; set; }
public required string ShortName { get; set; } public required string ShortName { get; set; }
public string? FullName { get; set; }
public List<Lesson>? Lessons { get; set; } public List<LessonAssociation>? Lessons { get; set; }
} }