diff --git a/SushiBar/SushiBarDatabaseImplement/Models/Client.cs b/SushiBar/SushiBarDatabaseImplement/Models/Client.cs index b550c3f..5260d67 100644 --- a/SushiBar/SushiBarDatabaseImplement/Models/Client.cs +++ b/SushiBar/SushiBarDatabaseImplement/Models/Client.cs @@ -19,9 +19,7 @@ namespace SushiBarDatabaseImplement.Models [Required] public string Password { get; private set; } = string.Empty; - [Required] - - [ForeignKey("ClientId")] + [ForeignKey("ID")] public virtual List Orders { get; set; } = new(); public static Client? Create(ClientBindingModel? model)