init_db
This commit is contained in:
22
PARR.DAL/Models/Host.cs
Normal file
22
PARR.DAL/Models/Host.cs
Normal 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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user