35 lines
804 B
C#
35 lines
804 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Hcs.WebApp.Data.Hcs
|
|
{
|
|
public class Campaign
|
|
{
|
|
public enum CampaignType
|
|
{
|
|
ExportCommonRegistryElements_15_7_0_1,
|
|
ExportPrivateRegistryElements_15_7_0_1
|
|
}
|
|
|
|
public int Id { get; set; }
|
|
|
|
public CampaignType Type { get; set; }
|
|
|
|
public string InitiatorId { get; set; }
|
|
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
public DateTime? StartedAt { get; set; }
|
|
|
|
public DateTime? EndedAt { get; set; }
|
|
|
|
public int Step { get; set; }
|
|
|
|
public string FailureReason { get; set; }
|
|
|
|
public virtual ICollection<Operation> Operations { get; set; } = [];
|
|
|
|
[NotMapped]
|
|
public bool Completed => EndedAt.HasValue;
|
|
}
|
|
}
|