Files
Prog4_Beadando/WD7UVN_HFT_2023241.Models/Employee.cs

20 lines
550 B
C#
Raw Normal View History

2024-04-29 22:57:16 +02:00
using System.ComponentModel.DataAnnotations;
2023-11-21 12:19:44 +01:00
using System.ComponentModel.DataAnnotations.Schema;
2023-10-18 10:47:33 +02:00
namespace WD7UVN_HFT_2023241.Models
{
2023-11-21 12:19:44 +01:00
public class Employee
2023-10-18 10:47:33 +02:00
{
2023-11-21 12:19:44 +01:00
[Key]
2023-10-18 10:47:33 +02:00
public int ID { get; set; }
2023-11-21 12:19:44 +01:00
[Required]
2023-10-18 10:47:33 +02:00
public string NAME { get; set; }
public string EMAIL { get; set; }
public string PHONE { get; set; }
2023-11-21 12:19:44 +01:00
[ForeignKey(nameof(MaintainerTeam))]
2024-04-29 22:57:16 +02:00
public int? MAINTAINER_ID { get; set; }
2023-11-21 12:19:44 +01:00
[ForeignKey(nameof(Employee))]
2024-04-29 22:57:16 +02:00
public int? MANAGER_ID { get; set; }
2023-10-18 10:47:33 +02:00
}
}