Removing unneccesary restrictions
This commit is contained in:
@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
|
|||||||
[Key]
|
[Key]
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(240)]
|
|
||||||
public string NAME { get; set; }
|
public string NAME { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string EMAIL { get; set; }
|
public string EMAIL { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string PHONE { get; set; }
|
public string PHONE { get; set; }
|
||||||
[ForeignKey(nameof(Service))]
|
[ForeignKey(nameof(Service))]
|
||||||
public int SERVICE_ID { get; set; }
|
public int SERVICE_ID { get; set; }
|
||||||
|
|||||||
@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
|
|||||||
[Key]
|
[Key]
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(240)]
|
|
||||||
public string NAME { get; set; }
|
public string NAME { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string EMAIL { get; set; }
|
public string EMAIL { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string PHONE { get; set; }
|
public string PHONE { get; set; }
|
||||||
[ForeignKey(nameof(Service))]
|
[ForeignKey(nameof(Service))]
|
||||||
public int SERVICE_ID { get; set; }
|
public int SERVICE_ID { get; set; }
|
||||||
|
|||||||
@@ -13,11 +13,8 @@ namespace WD7UVN_HFT_2023241.Models
|
|||||||
[Key]
|
[Key]
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(240)]
|
|
||||||
public string NAME { get; set; }
|
public string NAME { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string EMAIL { get; set; }
|
public string EMAIL { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string PHONE { get; set; }
|
public string PHONE { get; set; }
|
||||||
[ForeignKey(nameof(MaintainerTeam))]
|
[ForeignKey(nameof(MaintainerTeam))]
|
||||||
public int MAINTAINER_ID { get; set; }
|
public int MAINTAINER_ID { get; set; }
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ namespace WD7UVN_HFT_2023241.Models
|
|||||||
[Key]
|
[Key]
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[StringLength(240)]
|
|
||||||
public string NAME { get; set; }
|
public string NAME { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string EMAIL { get; set; }
|
public string EMAIL { get; set; }
|
||||||
[Required]
|
[Required]
|
||||||
[ForeignKey(nameof(Employee))]
|
[ForeignKey(nameof(Employee))]
|
||||||
|
|||||||
@@ -13,15 +13,10 @@ namespace WD7UVN_HFT_2023241.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public string NAME { get; set; }
|
public string NAME { get; set; }
|
||||||
public string VERSION { get; set; }
|
public string VERSION { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string ACCOUNT { get; set; }
|
public string ACCOUNT { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string NOTES { get; set; }
|
public string NOTES { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string SERVICE_DOMAIN { get; set; }
|
public string SERVICE_DOMAIN { get; set; }
|
||||||
[StringLength(240)]
|
|
||||||
public string IP { get; set; }
|
public string IP { get; set; }
|
||||||
[Range(0, 65535)]
|
|
||||||
public int PORT { get; set; }
|
public int PORT { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user