Files
Prog4_Beadando/WD7UVN_HFT_2023241.Models/Employee.cs
2024-01-09 14:48:13 +01:00

25 lines
664 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WD7UVN_HFT_2023241.Models
{
public class Employee
{
[Key]
public int ID { get; set; }
[Required]
public string NAME { get; set; }
public string EMAIL { get; set; }
public string PHONE { get; set; }
[ForeignKey(nameof(MaintainerTeam))]
public int MAINTAINER_ID { get; set; }
[ForeignKey(nameof(Employee))]
public int MANAGER_ID { get; set; }
}
}