Added data annotations
This commit is contained in:
@@ -1,12 +1,20 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace WD7UVN_HFT_2023241.Models
|
||||
{
|
||||
public class MaintainerTeam
|
||||
{
|
||||
[Key]
|
||||
public int ID { get; set; }
|
||||
[Required]
|
||||
[StringLength(240)]
|
||||
public string NAME { get; set; }
|
||||
[StringLength(240)]
|
||||
public string EMAIL { get; set; }
|
||||
[Required]
|
||||
[ForeignKey(nameof(Employee))]
|
||||
public int LEADER_EMPLOYEE_ID { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user