This commit is contained in:
Mikhail Kuznetsov
2023-05-19 15:15:52 +10:00
parent 707f634090
commit e34037267c
11 changed files with 1013 additions and 5 deletions

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

@@ -0,0 +1,22 @@
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; }
public DateTimeOffset DateCreated { get; set; }
public DateTimeOffset? DateModified { get; set; }
public required string HostName { get; set; }
public required string IP { get; set; }
public string? EK { get; set; }
public ICollection<JobJournal> JobJournals { get; set; } = new HashSet<JobJournal>();
}
}