feat: add specific week

This commit is contained in:
Polianin Nikita 2024-05-19 11:49:03 +03:00
parent ed0143cda1
commit 05dadff455
4 changed files with 15 additions and 4 deletions

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; }
} }