using System.ComponentModel.DataAnnotations.Schema; namespace Hcs.WebApp.Data.Hcs { public class Operation { public enum OperationType { Nsi_15_7_0_1_ExportAllRegistryElements } public int Id { get; set; } public OperationType Type { get; set; } public string InitiatorId { get; set; } public DateTime StartedAt { get; set; } public DateTime? EndedAt { get; set; } public string? MessageGuid { get; set; } [NotMapped] public bool Completed => EndedAt.HasValue; } }