Add campaign manager

This commit is contained in:
2025-10-27 10:02:58 +09:00
parent 891d462af1
commit 7c35c9a7df
18 changed files with 250 additions and 41 deletions

View File

@ -6,14 +6,16 @@ namespace Hcs.WebApp.Data.Hcs
{
public enum OperationType
{
NsiCommon_15_7_0_1_ExportAllRegistryElements
NsiCommon_ExportNsiItem_15_7_0_1
}
public int Id { get; set; }
public OperationType Type { get; set; }
public int CampaignId { get; set; }
public string InitiatorId { get; set; }
public virtual Campaign Campaign { get; set; } = null!;
public OperationType Type { get; set; }
public DateTime StartedAt { get; set; }
@ -21,6 +23,8 @@ namespace Hcs.WebApp.Data.Hcs
public string? MessageGuid { get; set; }
public virtual ICollection<Registry> Registries { get; set; } = [];
[NotMapped]
public bool Completed => EndedAt.HasValue;
}