Fix the sql schema #6

Merged
Wesser merged 9 commits from refactor/domain into release/v1.0.0 2024-01-26 07:48:14 +03:00
2 changed files with 12 additions and 20 deletions
Showing only changes of commit 96a120f017 - Show all commits

View File

@ -1,15 +0,0 @@
using System;
namespace Mirea.Api.DataAccess.Domain.Schedule;
public class Day
{
public int Id { get; set; }
public DayOfWeek Index { get; set; }
public int PairNumber { get; set; }
public int LessonId { get; set; }
public Lesson? Lesson { get; set; }
public int GroupId { get; set; }
public Group? Group { get; set; }
}

View File

@ -1,4 +1,5 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
namespace Mirea.Api.DataAccess.Domain.Schedule; namespace Mirea.Api.DataAccess.Domain.Schedule;
@ -6,9 +7,15 @@ public class Lesson
{ {
public int Id { get; set; } public int Id { get; set; }
public bool IsEven { get; set; } public bool IsEven { get; set; }
public required string Discipline { get; set; } public DayOfWeek DayOfWeek { get; set; }
public int PairNumber { get; set; }
public List<LessonToTypeOfOccupation>? TypeOfOccupations { get; set; } public int GroupId { get; set; }
public List<ProfessorToLesson>? ProfessorToLesson { get; set; } public Group? Group { get; set; }
public Day? Day { get; set; } public int TypeOfOccupationId { get; set; }
public TypeOfOccupation? TypeOfOccupation { get; set; }
public int DisciplineId { get; set; }
public Discipline? Discipline { get; set; }
public List<LessonAssociation>? LessonAssociations { get; set; }
} }