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

@@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WD7UVN_HFT_2023241.Models
{
@@ -17,8 +12,8 @@ namespace WD7UVN_HFT_2023241.Models
public string EMAIL { get; set; }
public string PHONE { get; set; }
[ForeignKey(nameof(MaintainerTeam))]
public int MAINTAINER_ID { get; set; }
public int? MAINTAINER_ID { get; set; }
[ForeignKey(nameof(Employee))]
public int MANAGER_ID { get; set; }
public int? MANAGER_ID { get; set; }
}
}