table Template

This commit is contained in:
Mikhail Kuznetsov
2023-09-01 12:40:41 +10:00
parent d6f1752465
commit 21eb83a50f
11 changed files with 1173 additions and 8 deletions

27
PARR.DAL/Models/Host.cs Normal file
View File

@@ -0,0 +1,27 @@
using PARR.DAL.Models.Base;
using PARR.DAL.Models.V1;
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; }
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateModified { get; set; }
public string? HostName { get; set; }
public required string IP { get; set; }
//public string? RegionalEK { get; set; }
//public string? LinkEK { get; set; }
public string? Status { get; set; }
public string? WorkGroup { get; set; }
//public string? Responsible { get; set; }
public ICollection<ApplicationInHost> ApplicationsInHosts { get; set; } = new HashSet<ApplicationInHost>();
}
}