Files
Prog4_Beadando/WD7UVN_HFT_2023241.Models/Service.cs

28 lines
794 B
C#
Raw Normal View History

2023-11-21 12:19:44 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace WD7UVN_HFT_2023241.Models
2023-10-18 10:47:33 +02:00
{
2023-11-21 12:19:44 +01:00
public class Service
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
[ForeignKey(nameof(MaintainerTeam))]
[Required]
2023-11-22 14:01:37 +01:00
public int MAINTAINER_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; }
2023-11-21 12:19:44 +01:00
public int 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; }
[StringLength(240)]
public int PORT { get; set; }
2023-10-18 10:47:33 +02:00
}
}