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

@@ -8,8 +8,7 @@ namespace WD7UVN_HFT_2023241.Models
[Key]
public int ID { get; set; }
[ForeignKey(nameof(MaintainerTeam))]
[Required]
public int MAINTAINER_ID { get; set; }
public int? MAINTAINER_ID { get; set; }
[Required]
public string NAME { get; set; }
public string VERSION { get; set; }