fixed some relationship problems

This commit is contained in:
2024-04-29 22:57:16 +02:00
parent 8cf2b0fbb9
commit 53148f5142
5 changed files with 13 additions and 14 deletions

View File

@@ -11,8 +11,7 @@ namespace WD7UVN_HFT_2023241.Models
[Required]
public string NAME { get; set; }
public string EMAIL { get; set; }
[Required]
[ForeignKey(nameof(Employee))]
public int LEADER_ID { get; set; }
public int? LEADER_ID { get; set; }
}
}