FixAuth
This commit is contained in:
@@ -14,11 +14,13 @@ namespace Entities.Contracts
|
||||
[Key]
|
||||
[Column("class_id")]
|
||||
public Guid ClassId { get; set; }
|
||||
[ForeignKey(nameof(ClassId))]
|
||||
public Class Class { get; set; }
|
||||
|
||||
[Key]
|
||||
[Column("teacher_id")]
|
||||
public Guid TeacherId { get; set; }
|
||||
[ForeignKey(nameof(TeacherId))]
|
||||
public User Teacher { get; set; }
|
||||
|
||||
[Column("subject_taught")]
|
||||
|
@@ -21,7 +21,9 @@ namespace Entities.Contracts
|
||||
[Column("deleted")]
|
||||
public bool IsDeleted { get; set; }
|
||||
|
||||
[InverseProperty(nameof(ClassTeacher.Teacher))]
|
||||
public ICollection<ClassTeacher> TaughtClassesLink { get; set; }
|
||||
[InverseProperty(nameof(ClassStudent.Student))]
|
||||
public ICollection<ClassStudent> EnrolledClassesLink { get; set; }
|
||||
|
||||
public ICollection<Question> CreatedQuestions { get; set; }
|
||||
|
Reference in New Issue
Block a user