Files
parr_api/PARR.DAL/Models/Host.cs

36 lines
926 B
C#
Raw Normal View History

2023-08-23 15:47:20 +10:00
using PARR.DAL.Models.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PARR.DAL.Models
{
[Table("Hosts")]
public class Host : IBase
{
[Key]
public Guid Id { get; set; }
2023-08-23 15:47:20 +10:00
public DateTimeOffset DateCreated { get; set; }
2023-08-23 15:47:20 +10:00
public DateTimeOffset? DateModified { get; set; }
public string Ek { get; set; }
2023-08-23 15:47:20 +10:00
public required string IP { get; set; }
2023-08-23 15:47:20 +10:00
//public string? RegionalEK { get; set; }
//public string? LinkEK { get; set; }
2023-08-23 15:47:20 +10:00
public string? Status { get; set; }
2023-08-23 15:47:20 +10:00
public string? WorkGroup { get; set; }
public string? ResponseArea { get; set; }
2023-08-23 15:47:20 +10:00
public ICollection<ApplicationInHost> ApplicationsInHosts { get; set; } = new HashSet<ApplicationInHost>();
2023-09-20 09:52:51 +10:00
public ICollection<Template> Templates { get; set; } = new HashSet<Template>();
2023-08-23 15:47:20 +10:00
}
}