using PARR.DAL.Models.Base; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace PARR.DAL.Models.V1 { [Table("V1_JobJournals")] public class V1_JobJournal : IBase { [Key] public Guid Id { get; set; } public DateTimeOffset DateCreated { get; set; } public DateTimeOffset? DateModified { get; set; } public DateTimeOffset DateOper { get; set; } public string? Other { get; set; } //Возможно нужно перенести в Job public int? TimeOut { get; set; } //Возможно нужно перенести в Job public string? Info { get; set; } public Guid JobStatusId { get; set; } [ForeignKey(nameof(JobStatusId))] public V1_JobStatus? Status { get; set; } public Guid HostId { get; set; } [ForeignKey(nameof(HostId))] public V1_Host? Host { get; set; } public Guid JobId { get; set; } [ForeignKey(nameof(JobId))] public V1_Job? Job { get; set; } } }