Removing unneccesary restrictions

This commit is contained in:
TypoMustakes
2024-01-09 14:48:13 +01:00
parent 54c1837a23
commit 589f92818e
5 changed files with 0 additions and 16 deletions

View File

@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
[Key]
public int ID { get; set; }
[Required]
[StringLength(240)]
public string NAME { get; set; }
[StringLength(240)]
public string EMAIL { get; set; }
[StringLength(240)]
public string PHONE { get; set; }
[ForeignKey(nameof(Service))]
public int SERVICE_ID { get; set; }

View File

@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
[Key]
public int ID { get; set; }
[Required]
[StringLength(240)]
public string NAME { get; set; }
[StringLength(240)]
public string EMAIL { get; set; }
[StringLength(240)]
public string PHONE { get; set; }
[ForeignKey(nameof(Service))]
public int SERVICE_ID { get; set; }

View File

@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
[Key]
public int ID { get; set; }
[Required]
[StringLength(240)]
public string NAME { get; set; }
[StringLength(240)]
public string EMAIL { get; set; }
[StringLength(240)]
public string PHONE { get; set; }
[ForeignKey(nameof(MaintainerTeam))]
public int MAINTAINER_ID { get; set; }

View File

@@ -9,9 +9,7 @@ namespace WD7UVN_HFT_2023241.Models
[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))]

View File

@@ -13,15 +13,10 @@ namespace WD7UVN_HFT_2023241.Models
[Required]
public string NAME { get; set; }
public string VERSION { get; set; }
[StringLength(240)]
public string ACCOUNT { get; set; }
[StringLength(240)]
public string NOTES { get; set; }
[StringLength(240)]
public string SERVICE_DOMAIN { get; set; }
[StringLength(240)]
public string IP { get; set; }
[Range(0, 65535)]
public int PORT { get; set; }
}
}